|
@@ -45,13 +45,24 @@ 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>
|
|
|
|
|
|
<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 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>
|