Changeset ff0f063 for chapter06/gcc.xml


Ignore:
Timestamp:
03/29/2013 11:28:04 AM (11 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
f93ffe4
Parents:
4e179e7
Message:

Introduce --disable-install-libiberty to prevent GCC from installing libiberty.a, but retain the existing sed as the configure flag doesn't seem to do what it should.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10229 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc.xml

    r4e179e7 rff0f063  
    4242    <title>Installation of GCC</title>
    4343
    44     <para>Apply a <command>sed</command> substitution that will suppress the
    45     installation of <filename class="libraryfile">libiberty.a</filename>. The
    46     version of <filename class="libraryfile">libiberty.a</filename> provided by
    47     Binutils will be used instead:</para>
    48 
    49 <screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>
    50 
    5144    <para>As in <xref linkend="ch-tools-gcc-pass2"/>, apply the following
    5245    <command>sed</command> to force the build to use the
     
    5851esac</userinput></screen>
    5952
     53    <para>Workaround a bug so that GCC doesn't install
     54    <filename class="libraryfile">libiberty.a</filename>, which is already
     55    provided by Binutils:</para>
     56
     57<screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>
     58
    6059    <para>Also fix an error in one of the check Makefiles:</para>
    6160
     
    7069    <para>Prepare GCC for compilation:</para>
    7170
    72 <screen><userinput remap="configure">../gcc-&gcc-version;/configure --prefix=/usr            \
    73                        --libexecdir=/usr/lib    \
    74                        --enable-shared          \
    75                        --enable-threads=posix   \
    76                        --enable-__cxa_atexit    \
    77                        --enable-clocale=gnu     \
    78                        --enable-languages=c,c++ \
    79                        --disable-multilib       \
    80                        --disable-bootstrap      \
     71<screen><userinput remap="configure">../gcc-&gcc-version;/configure --prefix=/usr               \
     72                       --libexecdir=/usr/lib       \
     73                       --enable-shared             \
     74                       --enable-threads=posix      \
     75                       --enable-__cxa_atexit       \
     76                       --enable-clocale=gnu        \
     77                       --enable-languages=c,c++    \
     78                       --disable-multilib          \
     79                       --disable-bootstrap         \
     80                       --disable-install-libiberty \
    8181                       --with-system-zlib</userinput></screen>
    8282
     
    8787    <variablelist>
    8888      <title>The meaning of the new configure option:</title>
     89
     90      <varlistentry>
     91        <term><parameter>--disable-install-libiberty</parameter></term>
     92        <listitem>
     93          <para>This prevents GCC from installing its own copy of libiberty,
     94          which is already provided by Binutils-&binutils-version;.</para>
     95        </listitem>
     96      </varlistentry>
    8997
    9098      <varlistentry>
Note: See TracChangeset for help on using the changeset viewer.