10.21. Zlib-1.2.8 32 Bit Libraries

The Zlib package contains compression and decompression routines used by some programs.

10.21.1. Installation of Zlib

Prepare Zlib for compilation:

CC="gcc -isystem /usr/include ${BUILD32}" \
CXX="g++ -isystem /usr/include ${BUILD32}" \
LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib ${BUILD32}" \
  ./configure --prefix=/usr

Compile the package:


To test the results, issue:

make check

Install the package:

make install

The previous command installed two .so files into /usr/lib. We will move them into /lib and then recreate a link in /usr/lib:

mv -v /usr/lib/libz.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so

Details on this package are located in Section 10.22.2, “Contents of Zlib.”