r5283 - in branches/cross-lfs/BOOK: introduction temp-system

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Mon May 9 17:13:20 PDT 2005


Author: jhuntwork
Date: 2005-05-09 18:13:20 -0600 (Mon, 09 May 2005)
New Revision: 5283

Modified:
   branches/cross-lfs/BOOK/introduction/changelog.xml
   branches/cross-lfs/BOOK/temp-system/gcc.xml
Log:
Temp-System: Added Sparc64 instructions to gcc, fixed a sed for all archs.

Modified: branches/cross-lfs/BOOK/introduction/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-09 22:11:58 UTC (rev 5282)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-10 00:13:20 UTC (rev 5283)
@@ -103,6 +103,7 @@
 <itemizedlist>
 <listitem><para>May 9, 2005 [jhuntwork]</para>
 <itemizedlist>
+<listitem><para>Temp-System: Added Sparc64 instructions to gcc, fixed a sed for all archs.</para></listitem>
 <listitem><para>Temp-System: Added Sparc64 instructions to binutils.</para></listitem>
 <listitem><para>Cross-tools: Added a necessary patch to binutils for multilib environments.</para></listitem>
 <listitem><para>Cross-tools: Added sparc64 specific instructions to final gcc.</para></listitem>

Modified: branches/cross-lfs/BOOK/temp-system/gcc.xml
===================================================================
--- branches/cross-lfs/BOOK/temp-system/gcc.xml	2005-05-09 22:11:58 UTC (rev 5282)
+++ branches/cross-lfs/BOOK/temp-system/gcc.xml	2005-05-10 00:13:20 UTC (rev 5283)
@@ -50,6 +50,13 @@
 <screen arch="sparc"><userinput>echo "
 #undef STARTFILE_PREFIX_SPEC
 #define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/sparc/linux.h</userinput></screen>
+
+<screen arch="sparc64"><userinput>echo "
+#undef STARTFILE_PREFIX_SPEC
+#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/sparc/linux.h
+echo "
+#undef STARTFILE_PREFIX_SPEC
+#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/sparc/linux64.h</userinput></screen>
  
 <screen arch="ppc"><userinput>echo "
 #undef STARTFILE_PREFIX_SPEC  
@@ -65,11 +72,17 @@
 <screen><userinput>sed -i 's@\(^NATIVE_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g' \
    gcc/Makefile.in</userinput></screen>
 
-<para>User our cross-complier instead of the one gcc builds, named xgcc:</para>
+<para>Use our cross-complier instead of the one gcc builds, named xgcc:</para>
 
-<screen><userinput>sed -i "s@\./xgcc@/tools/bin/${LFS_TARGET}-gcc at g" \
+<screen><userinput>sed -i "s@\./xgcc@/cross-tools/bin/${LFS_TARGET}-gcc at g" \
    gcc/mklibgcc.in</userinput></screen>
 
+<para arch="sparc64">When searching for the multilibs, force the build to use the
+results of --print-multi-lib from our cross-compiler, not the native compiler gcc builds now.</para>
+
+<screen><userinput arch="sparc64">sed -i \
+"/MULTILIBS/s@\$(GCC_FOR_TARGET)@/cross-tools/bin/${LFS_TARGET}-gcc at g" gcc/Makefile.in</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>
 
@@ -83,12 +96,20 @@
 
 <para>Now prepare GCC for compilation:</para>
 
-<screen><userinput>../gcc-&gcc-version;/configure --prefix=/tools \
+<screen arch="x86;ppc;sparc;raq2;"><userinput>../gcc-&gcc-version;/configure --prefix=/tools \
     --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
     --libexecdir=/tools/lib --with-local-prefix=/tools --enable-long-long \
     --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit \
     --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch</userinput></screen>
 
+<screen arch="sparc64"><userinput>CC="${LFS_TARGET}-gcc -m64 -mcpu=ultrasparc" \
+    ../gcc-&gcc-version;/configure --prefix=/tools --libdir=/tools/lib64 \
+    --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
+    --libexecdir=/tools/lib64 --with-local-prefix=/tools --enable-long-long \
+    --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit \
+    --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch \
+    --with-cpu=ultrasparc</userinput></screen>
+
 <para>The meaning of the new configure options:</para>
 
 <variablelist>




More information about the lfs-book mailing list