aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/zlib.xml
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2010-06-27 04:04:10 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2010-06-27 04:04:10 +0000
commit98a9253192cfca53d12ee72b0f68bbb9ac76adef (patch)
tree7ad948f5c80693d68e4ff886b4d233000cca88a6 /chapter06/zlib.xml
parent1d20dae970541dc7fc03995d550fbb5b47bbdcaf (diff)
Added new CFLAGS options to zlib configure instruction
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9315 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/zlib.xml')
-rw-r--r--chapter06/zlib.xml16
1 files changed, 15 insertions, 1 deletions
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>