The Zlib package contains compression and decompression routines used by some programs.
Prepare Zlib for 32-bit compilation:
CC="gcc -m32" ./configure --prefix=/usr \ --libdir=/usr/lib32
Compile the package:
make
To test the results, issue:
make check
Install the package:
make install
The shared library needs to be moved to /lib32
, and as a result the .so
file in /usr/lib32
will need to be recreated:
mv -v /usr/lib32/libz.so.* /lib32 ln -sfv ../../lib32/$(readlink /usr/lib32/libz.so) /usr/lib32/libz.so
Clean up the build directory before moving on to the next platform:
make clean
Prepare Zlib for x32 ABI compilation:
CC="gcc -mx32" ./configure --prefix=/usr \ --libdir=/usr/libx32
Compile the package:
make
To test the results, issue:
make check
Install the package:
make install
The shared library needs to be moved to /libx32
, and as a result the .so
file in /usr/libx32
will need to be recreated:
mv -v /usr/libx32/libz.so.* /libx32 ln -sfv ../../libx32/$(readlink /usr/libx32/libz.so) /usr/libx32/libz.so
Clean up the build directory before moving on to the next platform:
make clean
Prepare Zlib for 64-bit compilation:
./configure --prefix=/usr
Compile the package:
make
To test the results, issue:
make check
Install the package:
make install
The shared library needs to be moved to /lib
, and as a result the .so
file in /usr/lib
will need to be recreated:
mv -v /usr/lib/libz.so.* /lib ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so