aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc.xml
diff options
context:
space:
mode:
authorGreg Schafer <greg@linuxfromscratch.org>2003-11-21 03:39:20 +0000
committerGreg Schafer <greg@linuxfromscratch.org>2003-11-21 03:39:20 +0000
commit37dcf2af375d91d1095e54403db6b77ea523ba4e (patch)
treeaf13339eed5155fd2f8903928c39aee8bbe3a3e2 /chapter06/gcc.xml
parentbcd0ce7faafae9e2e127beab3374fb1cf2e448e0 (diff)
Rolled back 4 patches to seds: GCC Suppress-Libiberty, Grub Gcc33, Man Manpath, Man Pager. Closes Bug 461.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3117 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gcc.xml')
-rw-r--r--chapter06/gcc.xml21
1 files changed, 13 insertions, 8 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index 54a105db1..2c68102dd 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -23,20 +23,25 @@ Therefore, if you have defined any environment variables that override
default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
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
GCC-testsuite package. The full GCC package contains even more
compilers. Instructions for building these can be found at
<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
directory in a dedicated build directory:</para>