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
This commit is contained in:
Matthew Burgess 2010-07-26 18:45:20 +00:00
parent 67a8eaea72
commit ae4d45a669
2 changed files with 18 additions and 1 deletions

View File

@ -40,6 +40,11 @@
<listitem> <listitem>
<para>2010-07-26</para> <para>2010-07-26</para>
<itemizedlist> <itemizedlist>
<listitem>
<para>[matthew] - Make GCC use the system-wide copy of Zlib rather
than its bundled version. Fixes
<ulink url="&lfs-ticket-root;2718">#2718</ulink>.</para>
</listitem>
<listitem> <listitem>
<para>[matthew] - Upgrade to Psmisc-22.12. Fixes <para>[matthew] - Upgrade to Psmisc-22.12. Fixes
<ulink url="&lfs-ticket-root;2717">#2717</ulink>.</para> <ulink url="&lfs-ticket-root;2717">#2717</ulink>.</para>

View File

@ -78,12 +78,24 @@ cd ../gcc-build</userinput></screen>
--libexecdir=/usr/lib --enable-shared \ --libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \ --enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++ \ --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 <para>Note that for other languages, there are some prerequisites that
are not available. See the BLFS Book for instructions on how to are not available. See the BLFS Book for instructions on how to
build all the GCC supported languages.</para> 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> <para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="make">make</userinput></screen>