|
@@ -88,7 +88,7 @@ sed 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \
|
|
|
dynamic linker (typically <filename
|
|
|
class="libraryfile">ld-linux-x86-64.so.2</filename>):</para>
|
|
|
|
|
|
-<screen><userinput>patch -Np1 -i ../&gcc-pure64-specs-patch;</userinput></screen>
|
|
|
+<screen><userinput>patch -Np1 -i ../&gcc-specs-patch;</userinput></screen>
|
|
|
|
|
|
<para>The above patch also removes <filename
|
|
|
class="directory">/usr/include</filename> from GCC's include search path.
|
|
@@ -102,6 +102,13 @@ sed 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \
|
|
|
build. Do not forget to apply it.</para>
|
|
|
</important>
|
|
|
|
|
|
+ <para>Usetting the multlib spec for GCC ensures that it
|
|
|
+ won't attempt to link against libraries on the host:</para>
|
|
|
+
|
|
|
+<screen><userinput>cp gcc/config/i386/t-linux64{,.tmp}
|
|
|
+sed '/MULTILIB_OSDIRNAMES/d' gcc/config/i386/t-linux64.tmp \
|
|
|
+ > gcc/config/i386/t-linux64</userinput></screen>
|
|
|
+
|
|
|
<para>Create a separate build directory again:</para>
|
|
|
|
|
|
<screen><userinput>mkdir -v ../gcc-build
|
|
@@ -199,11 +206,6 @@ cd ../gcc-build</userinput></screen>
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
- <para>Since we're not building a multilib system, let's move some
|
|
|
- installed libraries to a more generic location:</para>
|
|
|
-<screen><userinput>cp -va /tools/lib64/* /tools/lib
|
|
|
-rm -rvf /tools/lib64</userinput></screen>
|
|
|
-
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
|
|
href="adjusting.xml"
|
|
|
xpointer="xpointer(/sect1/caution[1])"/>
|