diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2005-09-09 20:34:44 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2005-09-09 20:34:44 +0000 |
commit | 2e02c35ad71fcbd0b932edf49eb9a8d5e49179b1 (patch) | |
tree | e5a6a1882b04b9bf8d427bc3dfa27398b38f3b46 /chapter06/gcc.xml | |
parent | 98fe721a0601f13d3659b84ef88fd788418491dc (diff) |
Upgrade to gcc-4.0.1 (merge of gcc4 branch)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6819 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gcc.xml')
-rw-r--r-- | chapter06/gcc.xml | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index 4c13eed95..de204c1f4 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -38,17 +38,6 @@ variables that override default optimizations have been defined, such as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>, unset them when building GCC.</para> -<para>Apply only the No-Fixincludes patch (not the Specs patch) also -used in the previous chapter:</para> - -<screen><userinput>patch -Np1 -i ../&gcc-no_fixincludes-patch;</userinput></screen> - -<para>GCC fails to compile some packages outside of a base Linux From Scratch -install (e.g., Mozilla and kdegraphics) when used in conjunction with newer -versions of Binutils. Apply the following patch to fix this issue:</para> - -<screen><userinput>patch -Np1 -i ../&gcc-linkonce-patch;</userinput></screen> - <para>Apply a <command>sed</command> substitution that will suppress the installation of <filename class="libraryfile">libiberty.a</filename>. The version of <filename class="libraryfile">libiberty.a</filename> provided by @@ -56,6 +45,14 @@ Binutils will be used instead:</para> <screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen> +<para>The bootstrap build performed in <xref linkend="ch-tools-gcc-pass1"/> +built GCC with the <option>-fomit-frame-pointer</option> compiler flag. +Non-bootstrap builds omit this flag by default, so apply the following +<command>sed</command> to use it in order to ensure consistent compiler builds. +</para> + +<screen><userinput>sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in</userinput></screen> + <para>The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory:</para> |