|
@@ -23,20 +23,25 @@ Therefore, if you have defined any environment variables that override
|
|
default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
|
|
default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
|
|
or modifying them when building GCC.</para>
|
|
or modifying them when building GCC.</para>
|
|
|
|
|
|
-<para>This time we will build both the C and the C++ compiler, so you'll have
|
|
|
|
-to unpack the GCC-core <emphasis>and</emphasis> the GCC-g++ tarball -- they
|
|
|
|
|
|
+<para>Unpack the GCC-core <emphasis>and</emphasis> the GCC-g++ tarball -- they
|
|
will unfold into the same directory. You should likewise extract the
|
|
will unfold into the same directory. You should likewise extract the
|
|
GCC-testsuite package. The full GCC package contains even more
|
|
GCC-testsuite package. The full GCC package contains even more
|
|
compilers. Instructions for building these can be found at
|
|
compilers. Instructions for building these can be found at
|
|
<ulink url="&blfs-root;view/stable/general/gcc.html"/>.</para>
|
|
<ulink url="&blfs-root;view/stable/general/gcc.html"/>.</para>
|
|
|
|
|
|
-<screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch;
|
|
|
|
-patch -Np1 -i ../&gcc-suppress-libiberty-patch;</userinput></screen>
|
|
|
|
|
|
+<note><para>Be careful <emphasis role="strong">not</emphasis> to apply the GCC
|
|
|
|
+Specs patch from Chapter 5 here.</para></note>
|
|
|
|
|
|
-<para>The second patch here suppresses the installation of libiberty from GCC,
|
|
|
|
-as we will use the one provided by binutils instead. Be careful
|
|
|
|
-<emphasis>not</emphasis> to apply the GCC specs patch from Chapter 5
|
|
|
|
-here.</para>
|
|
|
|
|
|
+<para>First apply the No-Fixincludes patch that we also used in the previous
|
|
|
|
+chapter:</para>
|
|
|
|
+
|
|
|
|
+<screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch;</userinput></screen>
|
|
|
|
+
|
|
|
|
+<para>Now apply a sed substitution that will suppress the installation of
|
|
|
|
+<filename>libiberty.a</filename>. We want to use the version of
|
|
|
|
+<filename>libiberty.a</filename> provided by Binutils:</para>
|
|
|
|
+
|
|
|
|
+<screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>
|
|
|
|
|
|
<para>The GCC documentation recommends building GCC outside of the source
|
|
<para>The GCC documentation recommends building GCC outside of the source
|
|
directory in a dedicated build directory:</para>
|
|
directory in a dedicated build directory:</para>
|