7.7.2. Contents of Zlib
Installed libraries: libz.[a,so]
The Zlib package contains compression and decompression routines used by some programs.
Change the default optimization to Os
cp configure{,.orig}
sed -e 's/-O3/-Os/g' configure.orig > configurePrepare Zlib for compilation:
CC="${CC} ${BUILD}" ./configure --prefix=/usr --sharedThe meaning of the configure options:
--sharedTells Zlib to build its shared library.
Compile the package:
make
Install the package:
make prefix=${CLFS}/usr installThe 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