Author: jhuntwork
Date: 2005-07-16 22:16:10 -0600 (Sat, 16 Jul 2005)
New Revision: 6544

Modified:
   branches/gcc4/BOOK/chapter01/changelog.xml
   branches/gcc4/BOOK/chapter05/gcc-pass1.xml
   branches/gcc4/BOOK/chapter05/gcc-pass2.xml
Log:
Added sed to chapter 5 gcc builds to force the fixincludes to use headers from 
/tools and not the host.

Modified: branches/gcc4/BOOK/chapter01/changelog.xml
===================================================================
--- branches/gcc4/BOOK/chapter01/changelog.xml  2005-07-17 03:49:28 UTC (rev 
6543)
+++ branches/gcc4/BOOK/chapter01/changelog.xml  2005-07-17 04:16:10 UTC (rev 
6544)
@@ -112,6 +112,9 @@
 </itemizedlist>
 </listitem>
 
+<listitem><para>July  16th, 2005 [jhuntwork]: Added sed to chapter 5 gcc builds
+to force the fixincludes to use the headers in /tools and not the 
host.</para></listitem>
+
 <listitem><para>July  16th, 2005 [jhuntwork]: Removed no_fixincludes and 
linkonce
 patches for gcc4. Also removed the command to remove the fixed 
pthread.h.</para></listitem>
 

Modified: branches/gcc4/BOOK/chapter05/gcc-pass1.xml
===================================================================
--- branches/gcc4/BOOK/chapter05/gcc-pass1.xml  2005-07-17 03:49:28 UTC (rev 
6543)
+++ branches/gcc4/BOOK/chapter05/gcc-pass1.xml  2005-07-17 04:16:10 UTC (rev 
6544)
@@ -36,6 +36,12 @@
 as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
 unset them when building GCC.</para>
 
+<para>The following command adjusts where the gcc fixincludes search for 
headers
+so that it fixes only the new headers under /tools, not the ones from your 
host system.</para>
+
+<screen><userinput>sed -i '[EMAIL PROTECTED](^NATIVE_SYSTEM_HEADER_DIR 
=\)[EMAIL PROTECTED] /tools/[EMAIL PROTECTED]' \
+      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/chapter05/gcc-pass2.xml
===================================================================
--- branches/gcc4/BOOK/chapter05/gcc-pass2.xml  2005-07-17 03:49:28 UTC (rev 
6543)
+++ branches/gcc4/BOOK/chapter05/gcc-pass2.xml  2005-07-17 04:16:10 UTC (rev 
6544)
@@ -58,6 +58,12 @@
 url="&lfs-root;/lfs/faq.html#no-ptys"/> for more information on how to get PTYs
 working.</para>
 
+<para>The following command adjusts where the gcc fixincludes search for 
headers
+so that it fixes only the new headers under /tools, not the ones from your 
host system.</para>
+
+<screen><userinput>sed -i '[EMAIL PROTECTED](^NATIVE_SYSTEM_HEADER_DIR 
=\)[EMAIL PROTECTED] /tools/[EMAIL PROTECTED]' \
+      gcc/Makefile.in</userinput></screen>
+
 <para>Make an essential adjustment:</para>
 
 <screen><userinput>patch -Np1 -i ../&gcc-specs-patch;</userinput></screen>

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to