%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 Zlib is known to build its shared library incorrectly if CFLAGS is specified in the environment. If using a specified CFLAGS variable, be sure to add the -fPIC directive to the CFLAGS variable for the duration of the configure command below, then remove it afterwards. Modify the build scripts to ensure compilation with position independent code and allow building both static and dynamic libraries in one step: patch -Np1 -i ../&zlib-fpic-patch; Prepare Zlib for compilation: ./configure --prefix=/usr --shared Compile the package: make To test the results, issue: make check Install the libraries: make install Finally, fix permissions on the static library: chmod 0644 /usr/lib/libz.a Contents of Zlib Installed libraries libz.{a,so} Short Descriptions libz Contains compression and decompression functions used by some programs libz