%general-entities; ]> Zlib-&zlib-version; Zlib <para>The Zlib package contains compression and decompression routines used by some programs.</para> </sect2> <sect2 role="installation"> <title>Installation of Zlib Change the default optimization to Os cp configure{,.orig} sed -e 's/-O3/-Os/g' configure.orig > configure Prepare Zlib for compilation: ./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 prefix=${CLFS}/usr 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 Contents of Zlib Installed libraries libz.[a,so] Short Descriptions libz Contains compression and decompression functions used by some programs libz