Переглянути джерело

Added new CFLAGS options to zlib configure instruction

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9315 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs 15 роки тому
батько
коміт
98a9253192
2 змінених файлів з 22 додано та 1 видалено
  1. 7 0
      chapter01/changelog.xml
  2. 15 1
      chapter06/zlib.xml

+ 7 - 0
chapter01/changelog.xml

@@ -39,6 +39,13 @@
     <listitem>
       <para>2010-06-27</para>
       <itemizedlist>
+         <listitem>
+           <para>[bdubbs] - Added new CFLAGS options to zlib configure
+           instruction in order to prevent some seg faults when building
+           with gcc-4.5.
+           Fixes
+           <ulink url="&lfs-ticket-root;2691">#2691</ulink>.</para>
+         </listitem>
          <listitem>
            <para>[bdubbs] - Updated explanation of glibc timeout 
            errors and added TIMEOUTFACTOR as a possible solution.

+ 15 - 1
chapter06/zlib.xml

@@ -43,7 +43,21 @@
 
     <para>Prepare Zlib for compilation:</para>
 
-<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
+<screen><userinput remap="configure">CFLAGS='-mstackrealign -fPIC -O3' ./configure --prefix=/usr</userinput></screen>
+
+    <variablelist>
+      <title>The meaning of the new configure environment variable:</title>
+
+      <varlistentry>
+        <term><envar>CFLAGS='-mstackrealign -fPIC -O3'</envar></term>
+        <listitem>
+          <para>Setting CFLAGS overrides the default optimization in the
+          package to prevent some run time errors.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+
+
 
     <para>Compile the package:</para>