Author: bdubbs
Date: 2010-06-26 22:04:10 -0600 (Sat, 26 Jun 2010)
New Revision: 9315
Modified:
trunk/BOOK/chapter01/changelog.xml
trunk/BOOK/chapter06/zlib.xml
Log:
Added new CFLAGS options to zlib configure instruction
Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml 2010-06-27 03:43:05 UTC (rev 9314)
+++ trunk/BOOK/chapter01/changelog.xml 2010-06-27 04:04:10 UTC (rev 9315)
@@ -40,6 +40,13 @@
<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.
Fixes
Modified: trunk/BOOK/chapter06/zlib.xml
===================================================================
--- trunk/BOOK/chapter06/zlib.xml 2010-06-27 03:43:05 UTC (rev 9314)
+++ trunk/BOOK/chapter06/zlib.xml 2010-06-27 04:04:10 UTC (rev 9315)
@@ -43,8 +43,22 @@
<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>
<screen><userinput remap="make">make</userinput></screen>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page