diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2009-05-17 03:20:56 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2009-05-17 03:20:56 +0000 |
commit | 07312f6eec9cd6e0f5581bbf5720c8416cea70f2 (patch) | |
tree | 8462d9fd11463e443734d54ce18834154a95a1c8 /chapter05/gcc-pass2.xml | |
parent | fddfb520822967ae5afc28c92c8f3ff862851a42 (diff) |
Correct bootstrap explanation in gcc sections. Thanks to Chris Staub.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8883 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/gcc-pass2.xml')
-rw-r--r-- | chapter05/gcc-pass2.xml | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/chapter05/gcc-pass2.xml b/chapter05/gcc-pass2.xml index 75bca7092..b60c5c00a 100644 --- a/chapter05/gcc-pass2.xml +++ b/chapter05/gcc-pass2.xml @@ -66,10 +66,11 @@ <screen><userinput remap="pre">cp -v gcc/Makefile.in{,.orig} sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in</userinput></screen> - <para>Non-bootstrap builds omit the <option>-fomit-frame-pointer</option> - build flag by default, and the goal should be to produce a compiler that is - exactly the same as if it were bootstrapped. Apply the following - <command>sed</command> command to force the build to use the flag:</para> + <para>For x86 machines, a bootstrap build of GCC uses the + <option>-fomit-frame-pointer</option> compiler flag. Non-bootstrap builds + omit this flag by default, and the goal should be to produce a compiler + that is exactly the same as if it were bootstrapped. Apply the following + <command>sed</command> command to force the build to use the flag:</para> <screen><userinput remap="pre">cp -v gcc/Makefile.in{,.tmp} sed 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \ @@ -209,9 +210,14 @@ cd ../gcc-build</userinput></screen> <varlistentry> <term><parameter>--disable-bootstrap</parameter></term> <listitem> - <para>Bootstrapping the compiler is now the default for GCC. However, - our build method should provide us with a solid compiler without the - need to bootstrap each time.</para> + <para>For native builds of GCC, the default is to a "bootstrap" build. + This does not just compile GCC, but compiles it several times. It + uses the programs compiled in a first round to compile itself a + second time, and then again a third time. The second and third + iterations are compared to make sure it can reproduce itself + flawlessly. This also implies that it was compiled correctly. + However, the LFS build method should provide a solid compiler + without the need to bootstrap each time.</para> </listitem> </varlistentry> |