Skip to content

Conversation

@GitMensch
Copy link
Contributor

@GitMensch GitMensch commented Jan 5, 2026

upstreaming patch from https://community.ibm.com/community/user/question/z3-theorem-prover-for-cobol-under-aix which comes with the build instruction

# Set compile parameters
export CXX="g++"
export CXXFLAGS="-pthread -maix64”
export CPPFLAGS="-D_H_VAR"
export LDFLAGS="-pthread -maix64”
export OBJECT_MODE=64

# Compile 
python3 scripts/mk_make.py --prefix=/z3_install_dir
cd build
gmake -j8

# Compile and run the tests
gmake test
./test-z3 /a

# Install the files to /z3_install_dir
gmake install

# The shared library has .so extension. In AIX , better we archive it so that application can link to it using -lz3
cd /z3_install_dir/lib
ar -X64 -q libz3.a libz3.so

I was not sure if the flags above should be included in mk_util.py, so I left them out - feel free to include them there depending on sysname == 'AIX'.

@GitMensch GitMensch changed the title Aix compat AIX compat Jan 5, 2026
@NikolajBjorner NikolajBjorner merged commit c390afa into Z3Prover:master Jan 5, 2026
1 check passed
@GitMensch GitMensch deleted the aix-compat branch January 5, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants