Author: matthew
Date: 2005-08-14 07:46:05 -0600 (Sun, 14 Aug 2005)
New Revision: 6682
Modified:
branches/gcc4/BOOK/chapter01/changelog.xml
branches/gcc4/BOOK/chapter05/gcc-pass2.xml
branches/gcc4/BOOK/chapter06/gcc.xml
branches/gcc4/BOOK/general.ent
Log:
Added sed to force -fomit-frame-pointer on non-bootstrap GCC builds
Modified: branches/gcc4/BOOK/chapter01/changelog.xml
===================================================================
--- branches/gcc4/BOOK/chapter01/changelog.xml 2005-08-14 13:24:26 UTC (rev
6681)
+++ branches/gcc4/BOOK/chapter01/changelog.xml 2005-08-14 13:46:05 UTC (rev
6682)
@@ -117,6 +117,9 @@
</itemizedlist>
</listitem>
+<listitem><para>August 14th, 2005 [matt]: Add sed to chapter05/gcc-pass2 and
chapter06/gcc to ensure they get built with -fomit-frame-pointer so it matches
the
+bootstrap build in chapter05/gcc-pass1 (fixes bug 1609).</para></listitem>
+
<listitem><para>August 12th, 2005 [matt]: Explain that libiconv isn't required
on an LFS system (fixes bug 1614).</para></listitem>
Modified: branches/gcc4/BOOK/chapter05/gcc-pass2.xml
===================================================================
--- branches/gcc4/BOOK/chapter05/gcc-pass2.xml 2005-08-14 13:24:26 UTC (rev
6681)
+++ branches/gcc4/BOOK/chapter05/gcc-pass2.xml 2005-08-14 13:46:05 UTC (rev
6682)
@@ -76,6 +76,14 @@
<screen><userinput>sed -i '[EMAIL PROTECTED](^NATIVE_SYSTEM_HEADER_DIR
=\)[EMAIL PROTECTED] /tools/[EMAIL PROTECTED]' \
gcc/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>Apply the following patch to change the location of GCC's default dynamic
linker (typically <filename
class="libraryfile">ld-linux.so.2</filename>):</para>
Modified: branches/gcc4/BOOK/chapter06/gcc.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/gcc.xml 2005-08-14 13:24:26 UTC (rev
6681)
+++ branches/gcc4/BOOK/chapter06/gcc.xml 2005-08-14 13:46:05 UTC (rev
6682)
@@ -45,6 +45,14 @@
<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>
Modified: branches/gcc4/BOOK/general.ent
===================================================================
--- branches/gcc4/BOOK/general.ent 2005-08-14 13:24:26 UTC (rev 6681)
+++ branches/gcc4/BOOK/general.ent 2005-08-14 13:46:05 UTC (rev 6682)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "GCC4-20050812">
-<!ENTITY releasedate "August 12, 2005">
+<!ENTITY version "GCC4-20050814">
+<!ENTITY releasedate "August 14, 2005">
<!ENTITY milestone "6.2">
<!ENTITY generic-version "gcc4"> <!-- Use "svn", "testing", or "x.y[-pre{x}]"
-->
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page