aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc.xml
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2010-07-26 18:45:20 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2010-07-26 18:45:20 +0000
commitae4d45a66990f23590f8a967a8468f4349a04c1c (patch)
treeb3a47ce5a9162087b27a24b9195b0ac1e80e80c5 /chapter06/gcc.xml
parent67a8eaea72f797cfa107b1736a04cd2f78c7db70 (diff)
Make GCC use the system-wide copy of Zlib rather than its bundled version. Fixes #2718.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9344 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gcc.xml')
-rw-r--r--chapter06/gcc.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index 050c57a3b..cd41bce89 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -78,12 +78,24 @@ cd ../gcc-build</userinput></screen>
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++ \
- --disable-multilib --disable-bootstrap</userinput></screen>
+ --disable-multilib --disable-bootstrap --with-system-zlib</userinput></screen>
<para>Note that for other languages, there are some prerequisites that
are not available. See the BLFS Book for instructions on how to
build all the GCC supported languages.</para>
+ <variablelist>
+ <title>The meaning of the new configure option:</title>
+
+ <varlistentry>
+ <term><parameter>--with-system-zlib</parameter></term>
+ <listitem>
+ <para>This switch tells GCC to link to the system installed copy of
+ the Zlib library, rather than its own internl copy.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>