10.28. Zlib-1.2.8 N32 Libraries

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

10.28.1. Installation of Zlib

Prepare Zlib for compilation:

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

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

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

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

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