r5171 - in branches/cross-lfs/BOOK: cross-tools introduction materials

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Wed May 4 09:43:47 PDT 2005


Author: jhuntwork
Date: 2005-05-04 10:43:46 -0600 (Wed, 04 May 2005)
New Revision: 5171

Modified:
   branches/cross-lfs/BOOK/cross-tools/gcc-final.xml
   branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml
   branches/cross-lfs/BOOK/introduction/changelog.xml
   branches/cross-lfs/BOOK/materials/patches.xml
Log:
Added gcc-3.4.3-cross_search_paths-1.patch

Modified: branches/cross-lfs/BOOK/cross-tools/gcc-final.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/gcc-final.xml	2005-05-04 15:51:02 UTC (rev 5170)
+++ branches/cross-lfs/BOOK/cross-tools/gcc-final.xml	2005-05-04 16:43:46 UTC (rev 5171)
@@ -37,6 +37,11 @@
 
 <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-posix-1.patch</userinput></screen>
 
+<para>Now, we change the hard-coded "/usr/" found in gcc/gcc.c to "/cross-tools/",     
+ensuring that gcc doesn't find and use a libgcc_s.so that may exist on the host machine:</para>
+
+<screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-cross_search_paths-1.patch</userinput></screen>
+
 <para>Now we will need to setup our StartFile Spec to the correct library
 location:</para>
 
@@ -49,16 +54,11 @@
 <screen><userinput>sed -i "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g" \
   gcc/Makefile.in</userinput></screen>
 
-<para>Now disable -B in Makefile.in, so it doesn't pick up the host's header
+<para>Finally, 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</userinput></screen>
-
 <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/cross-tools/gcc-shared.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml	2005-05-04 15:51:02 UTC (rev 5170)
+++ branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml	2005-05-04 16:43:46 UTC (rev 5171)
@@ -37,6 +37,11 @@
 
 <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-posix-1.patch</userinput></screen>
 
+<para>Now, we change the hard-coded "/usr/" found in gcc/gcc.c to "/cross-tools/", 
+ensuring that gcc doesn't find and use a libgcc_s.so that may exist on the host machine:</para>
+
+<screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-cross_search_paths-1.patch</userinput></screen>
+
 <para>Now we will need to setup our StartFile Spec to the correct library
 location:</para>
 
@@ -54,16 +59,11 @@
 <screen><userinput>sed -i '/^SHLIB_LC = /s at -lc@@' gcc/config/t-slibgcc-elf-ver \
    gcc/config/t-libunwind</userinput></screen>
 
-<para>Now disable -B in Makefile.in, so it doesn't pick up the host's header
+<para>Finally, 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</userinput></screen>
-
 <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-04 15:51:02 UTC (rev 5170)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-04 16:43:46 UTC (rev 5171)
@@ -61,6 +61,7 @@
 
 <listitem><para>Added:</para>
 <itemizedlist>
+<listitem><para>Arch: All - gcc-3.4.3-cross_search_paths-1.patch</para></listitem>
 <listitem><para>Arch: All - glibc-2.3.5-fix_test-1.patch</para></listitem>
 <listitem><para>Arch: All - grep-2.5.1a-raq2_config_update-1.patch</para></listitem>
 <listitem><para>Arch: All - tar-1.15.1-sparse_fix-1.patch</para></listitem>
@@ -100,6 +101,7 @@
 <itemizedlist>
 <listitem><para>Fixed CC variable used in glibc headers.</para></listitem>
 <listitem><para>Added ppc specific info to glibc headers build.</para></listitem>
+<listitem><para>Added patch for gcc to fix gcc.c's search paths.</para></listitem>
 </itemizedlist>
 </listitem>
 </itemizedlist>

Modified: branches/cross-lfs/BOOK/materials/patches.xml
===================================================================
--- branches/cross-lfs/BOOK/materials/patches.xml	2005-05-04 15:51:02 UTC (rev 5170)
+++ branches/cross-lfs/BOOK/materials/patches.xml	2005-05-04 16:43:46 UTC (rev 5171)
@@ -65,6 +65,13 @@
 </varlistentry>
 
 <varlistentry>
+<term> GCC Cross Search Paths Patch - 2 KB:</term>
+<listitem>
+<para><ulink url="&patches-root;gcc/gcc-&gcc-version;-cross_search_paths-1.patch"/></para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
 <term> GCC Linkonce Patch - 12 KB:</term>
 <listitem>
 <para><ulink url="&patches-root;gcc/gcc-&gcc-version;-linkonce-1.patch"/></para>




More information about the lfs-book mailing list