%general-entities; ]> zlib &zlib-version;
&zlib-url;
Zlib-&zlib-version; Zlib <para>The Zlib package contains compression and decompression routines used by some programs.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&zlib-ch6-sbu;</seg> <seg>&zlib-ch6-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Zlib First, fix a typo in the package header file: sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h Prepare Zlib for compilation: CFLAGS='-mstackrealign -fPIC -O3' ./configure --prefix=/usr The meaning of the new configure environment variable: CFLAGS='-mstackrealign -fPIC -O3' Setting CFLAGS overrides the default optimization in the package to prevent some run time errors. Compile the package: make To test the results, issue: make check Install the package: make install The shared library needs to be moved to /lib, and as a result the .so file in /usr/lib will need to be recreated: mv -v /usr/lib/libz.so.* /lib ln -sfv ../../lib/libz.so.&zlib-version; /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