configure and run the Makefile:
# AIX 6.1, C 9.0; AIX 7.1, C 12.1
export CC=cc; export CFLAGS="-O2 -D_THREAD_SAFE -D_LARGE_FILES"; ./configure --static --prefix=/tmp/zlib-1.2.7
# AIX 4.1, C 3.6.6
export CC=cc; export CFLAGS="-O2 -qmaxmem=-1"; ./configure --static --prefix=/tmp/zlib-1.2.5
# HP-UX 11.x
export CC=cc; export CFLAGS="-O2"; ./configure --prefix=/tmp/zlib-1.2.3
# HP-UX 11.x, shared library
export CC=cc; export CFLAGS="-O2 +z"; ./configure --shared --prefix=/tmp/zlib-1.2.3
# HP-UX 10.20
export CC=cc; export CFLAGS="-O -Ae"; ./configure --prefix=/tmp/zlib-1.2.3
# HP-UX 10.20, shared library
export CC=cc; export CFLAGS="-O -Ae +z"; ./configure --shared --prefix=/tmp/zlib-1.2.3
# HP-UX 9.10, vsnprintf() not supported
export CC=cc; export CFLAGS="-O -Aa +e -D_XPG2 -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_HPUX_SOURCE -D_INCLUDE_XOPEN_SOURCE -D_INCLUDE_AES_SOURCE"; ./configure --prefix=/tmp/zlib-1.2.3
make clean
make
make install
Note: The configure script has a bug for --static
,
the generated Makefile
uses the variable SHAREDLIBV
,
which naturally is undefined in this case. Correct manually.