aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc-2953-inst.xml
diff options
context:
space:
mode:
authorGreg Schafer <greg@linuxfromscratch.org>2003-09-22 14:25:37 +0000
committerGreg Schafer <greg@linuxfromscratch.org>2003-09-22 14:25:37 +0000
commit677aef3d513a93c4b1ee3ac1f368860be1dac3b4 (patch)
treed9fa086cd5b5e1d4cab013938c41af434557513b /chapter06/gcc-2953-inst.xml
parent3aa9774abc8bd686f384824c4a80dd8fa1be25fc (diff)
GCC 2.95.3 fixes and other misc. toolchain related textual adjustments.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2861 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gcc-2953-inst.xml')
-rw-r--r--chapter06/gcc-2953-inst.xml26
1 files changed, 20 insertions, 6 deletions
diff --git a/chapter06/gcc-2953-inst.xml b/chapter06/gcc-2953-inst.xml
index d229c3f85..e828bf3de 100644
--- a/chapter06/gcc-2953-inst.xml
+++ b/chapter06/gcc-2953-inst.xml
@@ -16,17 +16,31 @@ GCC have not received as much testing for Linux kernel compilation. Using a
later version is likely to work, however, we recommend adhering to the kernel
developer's advice and using the version here to compile your kernel.</para>
+<note><para>We don't install the C++ compiler or libraries here. However, there
+may be reasons why you would want to install them. More information can be found
+at <ulink url="&blfs-root;view/cvs/general/gcc2.html"/>.</para></note>
+
<para>We'll install this older release of GCC into the non-standard prefix of
<filename class="directory">/opt</filename> so as to avoid interfering with
the system GCC already installed in <filename class="directory">/usr</filename>
.</para>
-<para><screen><userinput>patch -Np1 -i ../gcc-2.95.3-2.patch
-patch -Np1 -i ../gcc-2.95.3-returntype-fix.patch
-echo timestamp > gcc/cstamp-h.in
-mkdir ../gcc-2-build
-cd ../gcc-2-build
-../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \
+<para>Apply the patches and make a small adjustment:</para>
+
+<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-2953-patch-version;.patch
+patch -Np1 -i ../gcc-&gcc-2953-no-fixinc-patch-version;-no-fixinc.patch
+patch -Np1 -i ../gcc-&gcc-2953-returntype-fix-patch-version;-returntype-fix.patch
+echo timestamp > gcc/cstamp-h.in</userinput></screen></para>
+
+<para>The GCC documentation recommends building GCC outside of the source
+directory in a dedicated build directory:</para>
+
+<para><screen><userinput>mkdir ../gcc-2-build
+cd ../gcc-2-build</userinput></screen></para>
+
+<para>Compile and install gcc:</para>
+
+<para><screen><userinput>../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --enable-languages=c \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-threads=posix
make bootstrap