10.27. Zlib-1.2.8 N32 Libraries

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

10.27.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 remove itinto /lib32 and then relink it to /usr/lib32:

mv -v /usr/lib32/libz.so.* /lib32
ln -svf ../../lib32/libz.so.1 /usr/lib32/libz.so

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