Changeset 6206f72 for chapter06/gcc.xml


Ignore:
Timestamp:
05/11/2014 09:58:56 PM (10 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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.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:
ee9a785
Parents:
f6fe500
Message:

Add a patch to binutils to enable LTO with gcc-4.9.0.
Remove omit-frame-pointer in gcc-pass2 and Chapter 6 gcc.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc.xml

    rf6fe500 r6206f72  
    4646
    4747<screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-patch;</userinput></screen>
    48 
     48<!--
    4949    <para>As in <xref linkend="ch-tools-gcc-pass2"/>, apply the following
    5050    <command>sed</command> to force the build to use the
     
    5555  i?86) sed -i 's/^T_CFLAGS =$/&amp; -fomit-frame-pointer/' gcc/Makefile.in ;;
    5656esac</userinput></screen>
    57 
     57-->
    5858    <para>The GCC documentation recommends building GCC outside of the source
    5959    directory in a dedicated build directory:</para>
     
    151151<screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
    152152
     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
     158ln -sfv ../../libexec/gcc/x86_64-unknown-linux-gnu/&gcc-version;/liblto_plugin.so
     159popd</userinput></screen>
     160
    153161    <para>Now that our final toolchain is in place, it is important to again ensure
    154162    that compiling and linking will work as expected. We do this by performing
Note: See TracChangeset for help on using the changeset viewer.