Ver Fonte

Added CFLAGS to zlib defining -fPIC

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2284 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans há 22 anos atrás
pai
commit
f353a63bad
3 ficheiros alterados com 8 adições e 3 exclusões
  1. 4 0
      chapter01/changelog.xml
  2. 2 1
      chapter06/zlib-inst.xml
  3. 2 2
      index.xml

+ 4 - 0
chapter01/changelog.xml

@@ -57,6 +57,10 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>January 6th, 2003 [gerard]: Chapter 06 - Zlib: Added CFLAGS
+variable to define -fPIC so the dynamic library gets compiled properly at
+all times.</para></listitem>
+
 <listitem><para>January 5th, 2003 [timothy]: Chapter 05 - Applied Alex's
 patch to split the <emphasis>Install all software as an unprivileged
 user</emphasis> page into two pages: <emphasis>Adding the user lfs</emphasis>

+ 2 - 1
chapter06/zlib-inst.xml

@@ -3,7 +3,8 @@
 
 <para>Install Zlib by running the following commands:</para>
 
-<para><screen><userinput>./configure --prefix=/usr --shared &amp;&amp;
+<para><screen><userinput>CFLAGS="$CFLAGS -fPIC" \
+./configure --prefix=/usr --shared &amp;&amp;
 make LIBS="libz.so.1.1.4 libz.a" &amp;&amp;
 make LIBS="libz.so.1.1.4 libz.a" install &amp;&amp;
 mv /usr/lib/libz.so.* /lib &amp;&amp;

+ 2 - 2
index.xml

@@ -4,8 +4,8 @@
 
 <!ENTITY book SYSTEM "book/book.xml">
 
-<!ENTITY version "20030105">
-<!ENTITY releasedate "January 5th, 2003">
+<!ENTITY version "20030106">
+<!ENTITY releasedate "January 6th, 2003">
 
 <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
 <!ENTITY http-root "http://ftp.linuxfromscratch.org">