%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-fin-sbu;</seg> <seg>&zlib-fin-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Zlib Prepare Zlib for compilation: ./configure --prefix=/usr Compile the package: make Install the package: make DESTDIR=$LFS install mv -v $LFS/usr/lib/libz.so.* $LFS/lib ln -sfv ../../lib/$(readlink $LFS/usr/lib/libz.so) $LFS/usr/lib/libz.so Installation of Zlib - 32bit Clean previous build: make distclean Prepare Zlib for compilation: CC="gcc -m32" \ ./configure --prefix=/usr \ --libdir=&usr-lib-m32; Compile the package: make Install the package: make DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR&usr-lib-m32;/* $LFS&usr-lib-m32; rm -rf DESTDIR Installation of Zlib - x32bit make distclean Prepare Zlib for compilation: CC="gcc -mx32" \ ./configure --prefix=/usr \ --libdir=&usr-lib-mx32; Compile the package: make Install the package: make DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR&usr-lib-mx32;/* $LFS&usr-lib-mx32; rm -rf DESTDIR <para>Details on this package are located in <xref linkend="contents-zlib" role="."/></para> </sect2> </sect1>