r5157 - in branches/cross-lfs/BOOK: cross-tools introduction

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sun May 1 19:51:19 PDT 2005


Author: jhuntwork
Date: 2005-05-01 20:51:18 -0600 (Sun, 01 May 2005)
New Revision: 5157

Modified:
   branches/cross-lfs/BOOK/cross-tools/gcc-final.xml
   branches/cross-lfs/BOOK/introduction/changelog.xml
Log:
Added libgcc_s.so sed to final cross gcc as well

Modified: branches/cross-lfs/BOOK/cross-tools/gcc-final.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/gcc-final.xml	2005-05-02 02:36:01 UTC (rev 5156)
+++ branches/cross-lfs/BOOK/cross-tools/gcc-final.xml	2005-05-02 02:51:18 UTC (rev 5157)
@@ -49,11 +49,16 @@
 <screen><userinput>sed -i "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g" \
   gcc/Makefile.in</userinput></screen>
 
-<para>No disable -B in Makefile.in, so it doesn't pick up the host's header
+<para>Now disable -B in Makefile.in, so it doesn't pick up the host's header
 files:</para>
 
 <screen><userinput>sed -i '/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g' configure configure.in</userinput></screen>
 
+<para>Finally, we change the hard-coded "/usr/lib" found in gcc/gcc.c to "/tools/lib",
+ensuring that gcc doesn't find and use a libgcc_s.so that may exist on the host machine:</para>
+
+<screen <userinput>sed -i "/standard_exec_prefix_/s@/usr@/tools at g" gcc/gcc.c</screen></userinput>
+
 <important><para>The above patches and sed's are critical in ensuring a
 successful overall build. Do not forget to apply them.</para></important>
 

Modified: branches/cross-lfs/BOOK/introduction/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-02 02:36:01 UTC (rev 5156)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-02 02:51:18 UTC (rev 5157)
@@ -97,7 +97,7 @@
 <listitem><para>May 1, 2005 [jhuntwork]</para>
 <itemizedlist>
 <listitem><para>Added fix_test patch to final glibc build.</para></listitem>
-<listitem><para>Added sed to shared gcc to fix libgcc_s.so search path (thanks Eric-Jan).</para></listitem>
+<listitem><para>Added sed to shared and final cross gcc to fix libgcc_s.so search path (thanks Eric-Jan).</para></listitem>
 <listitem><para>Removed stale reference to libidn in glibc-headers section.</para></listitem>
 </itemizedlist>
 </listitem>




More information about the lfs-book mailing list