r967 - in branches/2.4-branch/BOOK: chapter04 chapter05

robert at linuxfromscratch.org robert at linuxfromscratch.org
Wed Feb 7 06:05:54 PST 2007


Author: robert
Date: 2007-02-07 07:05:54 -0700 (Wed, 07 Feb 2007)
New Revision: 967

Modified:
   branches/2.4-branch/BOOK/chapter04/patches.xml
   branches/2.4-branch/BOOK/chapter05/binutils-pass2.xml
Log:
Fix Binutils in chapter5 for uClibc

Modified: branches/2.4-branch/BOOK/chapter04/patches.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter04/patches.xml	2007-02-07 13:31:09 UTC (rev 966)
+++ branches/2.4-branch/BOOK/chapter04/patches.xml	2007-02-07 14:05:54 UTC (rev 967)
@@ -43,7 +43,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Binutils Lazy - &binutils-lazy-patch-size;:</term>
+      <term>Binutils Lazy Patch - &binutils-lazy-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&binutils-lazy-patch;"/></para>
         <para>MD5 sum: <literal>&binutils-lazy-patch-md5;</literal></para>
@@ -51,7 +51,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Binutils PT PaX - &binutils-pt_pax-patch-size;:</term>
+      <term>Binutils PT PaX Patch - &binutils-pt_pax-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&binutils-pt_pax-patch;"/></para>
         <para>MD5 sum: <literal>&binutils-pt_pax-patch-md5;</literal></para>
@@ -59,7 +59,7 @@
     </varlistentry>
 
     <varlistentry condition="uclibc">
-      <term>Binutils uClibc - &binutils-uClibc_conf-patch-size;:</term>
+      <term>Binutils uClibc Patch - &binutils-uClibc_conf-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&binutils-uClibc_conf-patch;"/></para>
         <para>MD5 sum: <literal>&binutils-uClibc_conf-patch-md5;</literal></para>
@@ -67,7 +67,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>BLFS Bootscript Additions - &blfs-bootscripts-hlfs-patch-size;:</term>
+      <term>BLFS Bootscript Additions Patch - &blfs-bootscripts-hlfs-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&blfs-bootscripts-hlfs-patch;"/></para>
         <para>MD5 sum: <literal>&blfs-bootscripts-hlfs-patch-md5;</literal></para>

Modified: branches/2.4-branch/BOOK/chapter05/binutils-pass2.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter05/binutils-pass2.xml	2007-02-07 13:31:09 UTC (rev 966)
+++ branches/2.4-branch/BOOK/chapter05/binutils-pass2.xml	2007-02-07 14:05:54 UTC (rev 967)
@@ -37,6 +37,19 @@
   <sect2 role="installation">
     <title>Re-installation of Binutils</title>
 
+    <para condition="uclibc">Apply this patch for uClibc support:</para>
+
+<screen condition="uclibc"><userinput>patch -Np1 -i ../&binutils-uClibc_conf-patch;</userinput></screen>
+
+    <para role="pax">Patch Binutils for PT_PAX_FLAGS:</para>
+
+<screen role="pax"><userinput>patch -Np1 -i ../&binutils-pt_pax-patch;</userinput></screen>
+
+    <para>This patch adds <option>-z lazy</option>, from binutils-cvs, which is
+    the counterpart of <option>-z now</option>.</para>
+
+<screen><userinput>patch -Np1 -i ../&binutils-lazy-patch;</userinput></screen>
+
     <para>Create a build directory and change into it:</para>
 
 <screen><userinput>mkdir -v ../binutils-build
@@ -44,9 +57,13 @@
 
     <para>Prepare Binutils for compilation:</para>
 
-<screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
-    --disable-nls --with-lib-path=/tools/lib</userinput></screen>
+<screen condition="glibc"><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
+    --enable-shared --with-lib-path=/tools/lib</userinput></screen>
 
+<screen condition="uclibc"><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
+    --enable-shared --with-lib-path=/tools/lib --target=$(uname -m)-pc-linux-uclibc \
+    --build=$(uname -m)-pc-linux-uclibc --host=$(uname -m)-pc-linux-uclibc</userinput></screen>
+
     <variablelist>
       <title>The meaning of the new configure options:</title>
 




More information about the hlfs-book mailing list