aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
authorDan Nichilson <dnicholson@linuxfromscratch.org>2007-03-14 04:31:35 +0000
committerDan Nichilson <dnicholson@linuxfromscratch.org>2007-03-14 04:31:35 +0000
commitacec47884b45309842156a3de7ebaf7b2b7191ef (patch)
tree5a9f9bc7eb4f8fbca9e14ca7b0b6dfcc186e29af /chapter05
parent49ae4c699178a29c650e4ccc9d81a27f3ba11ff4 (diff)
Force use of host's linker through *-pass1
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7963 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/binutils-pass1.xml13
-rw-r--r--chapter05/gcc-pass1.xml13
2 files changed, 24 insertions, 2 deletions
diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml
index 3541aa055..bb12f9f0e 100644
--- a/chapter05/binutils-pass1.xml
+++ b/chapter05/binutils-pass1.xml
@@ -59,12 +59,23 @@ cd ../binutils-build</userinput></screen>
<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
diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml
index 1e35da182..7ecba825a 100644
--- a/chapter05/gcc-pass1.xml
+++ b/chapter05/gcc-pass1.xml
@@ -45,7 +45,7 @@ cd ../gcc-build</userinput></screen>
<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 @@ cd ../gcc-build</userinput></screen>
<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