Changeset 50420218 for chapter06/gcc.xml


Ignore:
Timestamp:
04/28/2013 09:11:44 PM (11 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
3b60741
Parents:
1026c1ee
Message:

Sync with latest trunk updates

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc.xml

    r1026c1ee r50420218  
    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 
    51     <para>Again, do not build the .info files. They are broken with the current
    52     version of <command>makeinfo</command>.</para>
    53 
    54     <screen><userinput remap="pre">sed -i 's/BUILD_INFO=info/BUILD_INFO=/' gcc/configure</userinput></screen>
    55 
    56 
    57 
    5844    <para>As in <xref linkend="ch-tools-gcc-pass2"/>, apply the following
    5945    <command>sed</command> to force the build to use the
     
    6551esac</userinput></screen>
    6652
     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
    6759    <para>Also fix an error in one of the check Makefiles:</para>
    6860
     
    7769    <para>Prepare GCC for compilation:</para>
    7870
    79 <screen><userinput remap="configure">../gcc-&gcc-version;/configure --prefix=/usr            \
    80                        --libexecdir=/usr/lib    \
    81                        --enable-shared          \
    82                        --enable-threads=posix   \
    83                        --enable-__cxa_atexit    \
    84                        --enable-clocale=gnu     \
    85                        --enable-languages=c,c++ \
    86                        --disable-multilib       \
    87                        --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 \
    8881                       --with-system-zlib</userinput></screen>
    8982
     
    9689
    9790      <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>
     97
     98      <varlistentry>
    9899        <term><parameter>--with-system-zlib</parameter></term>
    99100        <listitem>
     
    103104      </varlistentry>
    104105    </variablelist>
    105 
    106     <note>
    107       <para>There is an optional argument to <command>configure</command>,
    108       <option>--enable-lto</option>, that can be used to allow
    109       <command>gcc</command> to do do "link time optimization" if specified.  No
    110       packages in LFS or BLFS currently use this capability.</para>
    111 
    112       <para>To use this feature, it must also be enabled in
    113       <application>binutils</application>.</para>
    114     </note>
    115106
    116107    <para>Compile the package:</para>
Note: See TracChangeset for help on using the changeset viewer.