r930 - in branches/2.4-branch/BOOK: chapter01 chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Sun Dec 3 21:21:19 PST 2006


Author: robert
Date: 2006-12-03 22:21:18 -0700 (Sun, 03 Dec 2006)
New Revision: 930

Modified:
   branches/2.4-branch/BOOK/chapter01/changelog.xml
   branches/2.4-branch/BOOK/chapter06/binutils.xml
Log:
Added --disable-static and --with-pic to Binutils chap6

Modified: branches/2.4-branch/BOOK/chapter01/changelog.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter01/changelog.xml	2006-12-03 23:47:30 UTC (rev 929)
+++ branches/2.4-branch/BOOK/chapter01/changelog.xml	2006-12-04 05:21:18 UTC (rev 930)
@@ -109,6 +109,9 @@
 </listitem>
 -->
 
+<listitem><para>December 3rd, 2006 [Robert]: Added --disable-static and --with-pic to
+Binutils in chap 6.</para></listitem>
+
 <listitem><para>December 3rd, 2006 [Robert]: Fixed bug with semaphore.h.</para></listitem>
 
 <listitem><para>December 3rd, 2006 [Robert]: Added branch update patch for Glibc-2.5.</para></listitem>

Modified: branches/2.4-branch/BOOK/chapter06/binutils.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter06/binutils.xml	2006-12-03 23:47:30 UTC (rev 929)
+++ branches/2.4-branch/BOOK/chapter06/binutils.xml	2006-12-04 05:21:18 UTC (rev 930)
@@ -50,13 +50,13 @@
     <para>This issue needs to be resolved before running the test suites
     for Binutils and GCC.</para>
 
-    <para role="hardened_tmp">This patch is from Binutils-cvs:
+    <para>This patch is from Binutils-cvs:
     <ulink url="http://sourceware.org/ml/binutils-cvs/2006-10/msg00044.html"/>,
     and adds the mkstemp(3) and mkdtemp(3) library functions to Binutils
     for safer temporary file creation. Apply this patch with the following
     command:</para>
 
-<screen role="hardened_tmp"><userinput>patch -Np1 -i ../&binutils-hardened_tmp-patch;</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&binutils-hardened_tmp-patch;</userinput></screen>
 
     <para>The Binutils documentation recommends building Binutils outside of the
     source directory in a dedicated build directory:</para>
@@ -67,8 +67,34 @@
     <para>Prepare Binutils for compilation:</para>
 
 <screen><userinput>../binutils-&binutils-version;/configure --prefix=/usr \
-    --enable-shared</userinput></screen>
+    --enable-shared --disable-static --with-pic</userinput></screen>
 
+    <variablelist>
+      <title>The meaning of the configure options:</title>
+
+      <varlistentry>
+        <term><parameter>--disable-static</parameter></term>
+        <listitem>
+          <para>This option configures Binutils so static libraries are
+          not built or installed. The
+          <filename class="libraryfile">libiberty.a</filename>
+          library will be installed regardless of this option.</para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><parameter>--with-pic</parameter></term>
+        <listitem>
+          <para>This option tells Binutils to build all libraries, both
+          static and shared, with position independent code. This is
+          particularly usefull here for the
+          <filename class="libraryfile">libiberty.a</filename> library.</para>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+
     <para>Compile the package:</para>
 
 <screen><userinput>make tooldir=/usr</userinput></screen>




More information about the hlfs-book mailing list