Changeset 61ce0b1 for chapter06/gcc.xml


Ignore:
Timestamp:
06/14/2014 07:51:45 PM (10 years ago)
Author:
DJ Lucas <dj@…>
Branches:
7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
c09761a
Parents:
6f34f43
Message:

Synchronized with LFS-SVN-20140611.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc.xml

    r6f34f43 r61ce0b1  
    4242    <title>Installation of GCC</title>
    4343
     44    <para>First fix a problem identified upstream that causes some
     45    programs to fail:</para>
     46
     47<screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-patch;</userinput></screen>
     48<!--
    4449    <para>As in <xref linkend="ch-tools-gcc-pass2"/>, apply the following
    4550    <command>sed</command> to force the build to use the
     
    5055  i?86) sed -i 's/^T_CFLAGS =$/&amp; -fomit-frame-pointer/' gcc/Makefile.in ;;
    5156esac</userinput></screen>
    52 <!--
    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>
    5857-->
    59     <para>Also fix an error in one of the check Makefiles and disable one test in
    60     the g++ libmudflap test suite:</para>
    61 
    62 <screen><userinput remap="pre">sed -i -e /autogen/d -e /check.sh/d fixincludes/Makefile.in
    63 mv -v libmudflap/testsuite/libmudflap.c++/pass41-frag.cxx{,.disable}</userinput></screen>
    64 
    6558    <para>The GCC documentation recommends building GCC outside of the source
    6659    directory in a dedicated build directory:</para>
     
    158151<screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
    159152
     153    <para>Add a compatibility symlink to enable building programs with
     154    Link Time Optimization (LTO):</para>
     155
     156<screen><userinput remap="install">install -dm755 /usr/lib/bfd-plugins
     157pushd /usr/lib/bfd-plugins
     158
     159if [ $(uname -m) == "i686" ]; then
     160   ln -sfv ../../libexec/gcc/i686-pc-linux-gnu/&gcc-version;/liblto_plugin.so
     161else
     162   ln -sfv ../../libexec/gcc/x86_64-unknown-linux-gnu/&gcc-version;/liblto_plugin.so
     163fi
     164
     165popd</userinput></screen>
     166
    160167    <para>Now that our final toolchain is in place, it is important to again ensure
    161168    that compiling and linking will work as expected. We do this by performing
Note: See TracChangeset for help on using the changeset viewer.