8.6. Zlib-1.2.3

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

8.6.1. Installation of Zlib

This patch will add the ability to use DESTDIR:

patch -Np1 -i ../zlib-1.2.3-DESTDIR-1.patch

Prepare Zlib for compilation:

CC="${CC} ${BUILD}" ./configure --prefix=/usr --shared

The meaning of the configure options:

--shared

Tells Zlib to build its shared library.

Compile the package:

make

Install the package:

make DESTDIR=${CLFS} install

The previous command installed a .so file in /usr/lib. We will move it into /lib and then relink it to /usr/lib:

mv -v ${CLFS}/usr/lib/libz.so.* ${CLFS}/lib
ln -svf ../../lib/libz.so.1 ${CLFS}/usr/lib/libz.so

8.6.2. Contents of Zlib

Installed libraries: libz.[a,so]

Short Descriptions

libz

Contains compression and decompression functions used by some programs