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

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Fri May 6 12:39:23 PDT 2005


Author: jhuntwork
Date: 2005-05-06 13:39:22 -0600 (Fri, 06 May 2005)
New Revision: 5187

Modified:
   branches/cross-lfs/BOOK/cross-tools/glibc-startfiles.xml
   branches/cross-lfs/BOOK/cross-tools/glibc.xml
   branches/cross-lfs/BOOK/introduction/changelog.xml
Log:
Updated cross-tools glibc commands for sparc

Modified: branches/cross-lfs/BOOK/cross-tools/glibc-startfiles.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/glibc-startfiles.xml	2005-05-06 18:09:08 UTC (rev 5186)
+++ branches/cross-lfs/BOOK/cross-tools/glibc-startfiles.xml	2005-05-06 19:39:22 UTC (rev 5187)
@@ -72,8 +72,8 @@
     ../glibc-&glibc-version;/configure --prefix=/tools \
     --host=${LFS_TARGET} --build=${LFS_HOST} \
     --without-cvs --disable-profile --enable-add-ons \
-    --with-tls --enable-kernel=2.6.0 --with-__thread \
-    --with-binutils=/cross-tools/bin --with-headers=/tools/include</userinput></screen>
+    --enable-kernel=2.6.0 --with-binutils=/cross-tools/bin \
+    --with-headers=/tools/include</userinput></screen>
 
 <para>The meaning of the configure options:</para>
 

Modified: branches/cross-lfs/BOOK/cross-tools/glibc.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/glibc.xml	2005-05-06 18:09:08 UTC (rev 5186)
+++ branches/cross-lfs/BOOK/cross-tools/glibc.xml	2005-05-06 19:39:22 UTC (rev 5187)
@@ -38,17 +38,20 @@
 the method suggested in this book puts the stability of the system at
 risk.</para>
 
-<para arch="raq2">Unpack the glibc-linuxthreads-&glibc-version; <emphasis>and</emphasis>
-tarball -- it will unfold into the same directory.</para>
+<para arch="raq2;sparc;">This architecture does not currently support NPTL,
+so we will have to include Glibc Linuxthreads as a threading library.
+Building for a Linuxthreads based glibc you will need to
+unpack the glibc-linuxthreads-&glibc-version; tarball from
+within the glibc-&glibc-version; directory.</para>
 
 <para arch="raq2">The following patch corrects the building of syscall.h:</para>
 
 <screen arch="raq2"><userinput>patch -Np1 -i ../glibc-&glibc-version;-mips_syscall-1.patch</userinput></screen>
 
-<para arch="raq2">NPTL is not supported under this architecture, so we are going to
+<para arch="raq2;sparc;">NPTL is not supported under this architecture, so we are going to
 remove the nptl directory from the Glibc source:</para>
 
-<screen arch="raq2"><userinput>rm -rf nptl*</userinput></screen>
+<screen arch="raq2;sparc;"><userinput>rm -rf nptl*</userinput></screen>
 
 <para>The Glibc documentation recommends building Glibc outside of the source
 directory in a dedicated build directory:</para>
@@ -56,14 +59,14 @@
 <screen><userinput>mkdir ../glibc-build
 cd ../glibc-build</userinput></screen>
 
-<para arch="alpha;ppc;x86;">For NPTL enabled systems we will need to add the following lines to config.cache</para>
+<para arch="ppc;x86;">For NPTL enabled systems we will need to add the following lines to config.cache</para>
 
-<screen arch="alpha;ppc;x86"><userinput>echo "libc_cv_forced_unwind=yes" > config.cache
+<screen arch="ppc;x86"><userinput>echo "libc_cv_forced_unwind=yes" > config.cache
 echo "libc_cv_c_cleanup=yes" >> config.cache</userinput></screen>
 
 <para>Next, prepare Glibc for compilation:</para>
 
-<screen arch="alpha;ppc;x86;"><userinput>CC="${LFS_TARGET}-gcc" AR="${LFS_TARGET}-ar" \
+<screen arch="ppc;x86;"><userinput>CC="${LFS_TARGET}-gcc" AR="${LFS_TARGET}-ar" \
     RANLIB="${LFS_TARGET}-ranlib" \
     ../glibc-&glibc-version;/configure --prefix=/tools \
     --host=${LFS_TARGET} --build=${LFS_HOST} \
@@ -72,12 +75,13 @@
     --with-binutils=/cross-tools/bin --with-headers=/tools/include \
     --cache-file=config.cache</userinput></screen>
 
-<screen arch="raq2"><userinput>CC="${LFS_TARGET}-gcc" AR="${LFS_TARGET}-ar" \
+<screen arch="raq2;sparc;"><userinput>CC="${LFS_TARGET}-gcc" AR="${LFS_TARGET}-ar" \
     RANLIB="${LFS_TARGET}-ranlib" \
     ../glibc-&glibc-version;/configure --prefix=/tools \
     --host=${LFS_TARGET} --build=${LFS_HOST} \
     --without-cvs --disable-profile --enable-add-ons \
-    --with-binutils=/cross-tools/bin --with-headers=/tools/include</userinput></screen>
+    --enable-kernel=2.6.0 --with-binutils=/cross-tools/bin \
+    --with-headers=/tools/include</userinput></screen>
 
 <para>The meaning of the configure options:</para>
 

Modified: branches/cross-lfs/BOOK/introduction/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-06 18:09:08 UTC (rev 5186)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-06 19:39:22 UTC (rev 5187)
@@ -100,9 +100,8 @@
 <listitem><para>May 5, 2005 [jhuntwork]</para>
 <itemizedlist>
 <listitem><para>Created sparc specific linux-libc-headers page.</para></listitem>
-<listitem><para>Updated sparc commands for glibc-headers.</para></listitem>
+<listitem><para>Updated sparc commands for cross-tools glibc.</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>




More information about the lfs-book mailing list