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

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Fri May 6 11:09:09 PDT 2005


Author: jhuntwork
Date: 2005-05-06 12:09:08 -0600 (Fri, 06 May 2005)
New Revision: 5186

Modified:
   branches/cross-lfs/BOOK/cross-tools/gcc-final.xml
   branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml
   branches/cross-lfs/BOOK/cross-tools/gcc-static.xml
   branches/cross-lfs/BOOK/introduction/changelog.xml
Log:
Fixed startfile prefix commands to work with multiple archs.

Modified: branches/cross-lfs/BOOK/cross-tools/gcc-final.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/gcc-final.xml	2005-05-06 17:07:58 UTC (rev 5185)
+++ branches/cross-lfs/BOOK/cross-tools/gcc-final.xml	2005-05-06 18:09:08 UTC (rev 5186)
@@ -45,10 +45,18 @@
 <para>Now we will need to setup our StartFile Spec to the correct library
 location:</para>
 
-<screen><userinput>echo "
+<screen arch="x86;raq2;"><userinput>echo "
 #undef STARTFILE_PREFIX_SPEC
 #define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/linux.h</userinput></screen>
 
+<screen arch="sparc"><userinput>echo "
+#undef STARTFILE_PREFIX_SPEC
+#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/sparc/linux.h</userinput></screen>
+ 
+<screen arch="ppc"><userinput>echo "
+#undef STARTFILE_PREFIX_SPEC 
+#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/rs6000/linux.h</userinput></screen>
+
 <para>Now we will change gcc's search path to look into /tools only:</para>
 
 <screen><userinput>sed -i "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g" \

Modified: branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml	2005-05-06 17:07:58 UTC (rev 5185)
+++ branches/cross-lfs/BOOK/cross-tools/gcc-shared.xml	2005-05-06 18:09:08 UTC (rev 5186)
@@ -45,10 +45,18 @@
 <para>Now we will need to setup our StartFile Spec to the correct library
 location:</para>
 
-<screen><userinput>echo "
+<screen arch="x86;raq2;"><userinput>echo "
 #undef STARTFILE_PREFIX_SPEC
 #define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/linux.h</userinput></screen>
 
+<screen arch="sparc"><userinput>echo "
+#undef STARTFILE_PREFIX_SPEC
+#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/sparc/linux.h</userinput></screen>
+ 
+<screen arch="ppc"><userinput>echo "
+#undef STARTFILE_PREFIX_SPEC 
+#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/rs6000/linux.h</userinput></screen>
+
 <para>Now we will change gcc's search path to look into /tools only:</para>
 
 <screen><userinput>sed -i "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g" \

Modified: branches/cross-lfs/BOOK/cross-tools/gcc-static.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/gcc-static.xml	2005-05-06 17:07:58 UTC (rev 5185)
+++ branches/cross-lfs/BOOK/cross-tools/gcc-static.xml	2005-05-06 18:09:08 UTC (rev 5186)
@@ -41,10 +41,18 @@
 <para>Now we will need to setup our StartFile Spec to the correct library
 location:</para>
 
-<screen><userinput>echo "
+<screen arch="x86;raq2;"><userinput>echo "
 #undef STARTFILE_PREFIX_SPEC
 #define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/linux.h</userinput></screen>
 
+<screen arch="sparc"><userinput>echo "
+#undef STARTFILE_PREFIX_SPEC
+#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/sparc/linux.h</userinput></screen>
+
+<screen arch="ppc"><userinput>echo "
+#undef STARTFILE_PREFIX_SPEC
+#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/rs6000/linux.h</userinput></screen>
+
 <para>Now we will change gcc's search path to look into /tools only:</para>
 
 <screen><userinput>sed -i "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g" \

Modified: branches/cross-lfs/BOOK/introduction/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-06 17:07:58 UTC (rev 5185)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-06 18:09:08 UTC (rev 5186)
@@ -103,6 +103,7 @@
 <listitem><para>Updated sparc commands for glibc-headers.</para></listitem>
 <listitem><para>Updated text concerning linuxthreads.</para></listitem>
 <listitem><para>Updated sparc commands for glibc-startfiles.</para></listitem>
+<listitem><para>Fixed startfile prefix commands to work with multiple archs.</para></listitem>
 </itemizedlist>
 </listitem>
 </itemizedlist>




More information about the lfs-book mailing list