From 81fd230419b0cfd052b08fc1ed352bb7d49975df Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Sat, 19 Feb 2005 22:16:42 +0000 Subject: Trunk is now identical to Testing git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4648 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/zlib.xml | 45 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 7 deletions(-) (limited to 'chapter06/zlib.xml') diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml index 606751c8d..77c731ba9 100644 --- a/chapter06/zlib.xml +++ b/chapter06/zlib.xml @@ -3,13 +3,15 @@ %general-entities; ]> - + Zlib-&zlib-version; Zlib +<para>The Zlib package contains compression and un-compression routines used by +some programs.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> @@ -17,12 +19,22 @@ <seglistitem><seg>0.1 SBU</seg><seg>1.5 MB</seg></seglistitem> </segmentedlist> +<segmentedlist> +<segtitle>Zlib installation depends on</segtitle> +<seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make, and Sed</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. + Prepare Zlib for compilation: ./configure --prefix=/usr --shared --libdir=/lib @@ -38,25 +50,27 @@ make install -Now we will remove the old, .so files in /lib and relink them into /usr/lib. +Next we will remove the old, .so files in +the /lib directory and relink them +into /usr/lib. rm /lib/libz.so ln -sf ../../lib/libz.so.&zlib-version; /usr/lib/libz.so -Now also build the non-shared (static) library: +Build the static library: make clean ./configure --prefix=/usr make -To again test the results, issue: +To test the results again, issue: make check. Install the static library: make install -And fix the permissions on the static library: +Fix the permissions on the static library: chmod 644 /usr/lib/libz.a @@ -65,8 +79,25 @@ make Contents of Zlib -See testing + +Installed libraries +libz[a,so] + + +Short Descriptions + + + +libz + +Contains compression and un-compression +functions used by some programs +libz + + + + -- cgit v1.2.3-54-g00ecf