aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chapter01/changelog.xml7
-rw-r--r--chapter06/zlib.xml16
2 files changed, 22 insertions, 1 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 56017f97b..f82bd55aa 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -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
diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml
index 1dfa3a9bc..e4a419a5d 100644
--- a/chapter06/zlib.xml
+++ b/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>