Author: dnicholson
Date: 2007-03-13 22:31:35 -0600 (Tue, 13 Mar 2007)
New Revision: 7963
Modified:
trunk/BOOK/chapter01/changelog.xml
trunk/BOOK/chapter05/binutils-pass1.xml
trunk/BOOK/chapter05/gcc-pass1.xml
trunk/BOOK/general.ent
trunk/BOOK/prologue/hostreqs.xml
Log:
Force use of host's linker through *-pass1
Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml 2007-03-14 04:13:58 UTC (rev 7962)
+++ trunk/BOOK/chapter01/changelog.xml 2007-03-14 04:31:35 UTC (rev 7963)
@@ -37,6 +37,18 @@
-->
<listitem>
+ <para>2007-03-14</para>
+ <itemizedlist>
+ <listitem>
+ <para>[dnicholson] - Force the host's linker to be used throughout
+ Binutils-Pass1 and GCC-Pass1. This makes the build more robust since
+ the host's compiler may not be compatible with the linker installed
+ in Binutils-Pass1, such as on newer Fedora hosts.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
<para>2007-03-04</para>
<itemizedlist>
<listitem>
Modified: trunk/BOOK/chapter05/binutils-pass1.xml
===================================================================
--- trunk/BOOK/chapter05/binutils-pass1.xml 2007-03-14 04:13:58 UTC (rev
7962)
+++ trunk/BOOK/chapter05/binutils-pass1.xml 2007-03-14 04:31:35 UTC (rev
7963)
@@ -59,12 +59,23 @@
<para>Now prepare Binutils for compilation:</para>
-<screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools
--disable-nls</userinput></screen>
+<screen><userinput>CC="gcc -B/usr/bin/"
../binutils-&binutils-version;/configure --prefix=/tools
--disable-nls</userinput></screen>
<variablelist>
<title>The meaning of the configure options:</title>
<varlistentry>
+ <term><envar>CC="gcc -B/usr/bin/"</envar></term>
+ <listitem>
+ <para>This forces <command>gcc</command> to prefer the linker from
+ the host in <filename class="directory">/usr/bin</filename>. This
+ is necessary on some hosts where the new <command>ld</command>
+ built here is not compatible with the host's <command>gcc</command>.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><parameter>--prefix=/tools</parameter></term>
<listitem>
<para>This tells the configure script to prepare to install the
Modified: trunk/BOOK/chapter05/gcc-pass1.xml
===================================================================
--- trunk/BOOK/chapter05/gcc-pass1.xml 2007-03-14 04:13:58 UTC (rev 7962)
+++ trunk/BOOK/chapter05/gcc-pass1.xml 2007-03-14 04:31:35 UTC (rev 7963)
@@ -45,7 +45,7 @@
<para>Prepare GCC for compilation:</para>
-<screen><userinput>../gcc-&gcc-version;/configure --prefix=/tools \
+<screen><userinput>CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure
--prefix=/tools \
--with-local-prefix=/tools --disable-nls --enable-shared \
--enable-languages=c</userinput></screen>
@@ -53,6 +53,17 @@
<title>The meaning of the configure options:</title>
<varlistentry>
+ <term><envar>CC="gcc -B/usr/bin/"</envar></term>
+ <listitem>
+ <para>This forces <command>gcc</command> to prefer the linker from
+ the host in <filename class="directory">/usr/bin</filename>. This
+ is necessary on some hosts where the new <command>ld</command>
+ built in the previous section is not compatible with the host's
+ <command>gcc</command>.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><parameter>--with-local-prefix=/tools</parameter></term>
<listitem>
<para>The purpose of this switch is to remove <filename
Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent 2007-03-14 04:13:58 UTC (rev 7962)
+++ trunk/BOOK/general.ent 2007-03-14 04:31:35 UTC (rev 7963)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "SVN-20070304">
-<!ENTITY releasedate "March 4, 2007">
+<!ENTITY version "SVN-20070314">
+<!ENTITY releasedate "March 14, 2007">
<!ENTITY milestone "6.3">
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or
"x.y[-pre{x}]" -->
Modified: trunk/BOOK/prologue/hostreqs.xml
===================================================================
--- trunk/BOOK/prologue/hostreqs.xml 2007-03-14 04:13:58 UTC (rev 7962)
+++ trunk/BOOK/prologue/hostreqs.xml 2007-03-14 04:31:35 UTC (rev 7963)
@@ -56,7 +56,9 @@
</listitem>
<listitem>
- <para><emphasis role="strong">Gcc-2.95.3</emphasis> (Versions
+ <!-- Gcc-2.95.3 breaks feature tests when using CC="gcc -B/usr/bin/"
+ in the *-pass1 sections -->
+ <para><emphasis role="strong">Gcc-3.0.1</emphasis> (Versions
greater than &gcc-version; are not recommended as they have not
been tested)</para>
</listitem>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page