From adc232404fe4809a0bc34a183343e2b025c44b30 Mon Sep 17 00:00:00 2001 From: Jeremy Utley Date: Tue, 9 Sep 2003 19:44:47 +0000 Subject: removed zlib cflags munging git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2754 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 3 +++ chapter06/zlib-inst.xml | 9 +++++---- index.xml | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 1a73d99cf..02fe901e8 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -82,6 +82,9 @@ +September 9th, 2003 [jeremy]: Chapter 6 - Removed zlib's +munging of CFLAGS in favor of a note to add -fPIC. + September 8th, 2003 [matt]: Chapter 5 - Fixed the rm command that deletes unneeded documentation from /tools/share. diff --git a/chapter06/zlib-inst.xml b/chapter06/zlib-inst.xml index dfdec277c..701a2a8ce 100644 --- a/chapter06/zlib-inst.xml +++ b/chapter06/zlib-inst.xml @@ -11,11 +11,12 @@ so by applying this patch: Now prepare Zlib for compilation: -CFLAGS="$CFLAGS -fPIC" \ -    ./configure --prefix=/usr --shared +./configure --prefix=/usr --shared -The -fPIC flag helps to assure -quality in the dynamic Zlib library. +Note: Zlib is known to build it's shared library incorrectly +if a CFLAGS is specified in the enviornment. If you are using your +own CFLAGS variables, ensure you add the -fPIC +directive during this stage, and remove it after. Compile the package: diff --git a/index.xml b/index.xml index 473f064a5..d6dee3b4f 100644 --- a/index.xml +++ b/index.xml @@ -3,8 +3,8 @@ "/usr/share/docbook/docbookx.dtd" [ - - + + -- cgit v1.2.3-54-g00ecf