aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc-2953.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/gcc-2953.xml')
-rw-r--r--chapter06/gcc-2953.xml53
1 files changed, 23 insertions, 30 deletions
diff --git a/chapter06/gcc-2953.xml b/chapter06/gcc-2953.xml
index 171c4d908..b337d127e 100644
--- a/chapter06/gcc-2953.xml
+++ b/chapter06/gcc-2953.xml
@@ -1,22 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
<sect1 id="ch-system-gcc-2953">
-<title>Installing GCC-2.95.3</title>
-<?dbhtml filename="gcc-2953.html" dir="chapter06"?>
+<title>GCC-&gcc-2953-version;</title>
+<?dbhtml filename="gcc-2953.html"?>
-<screen>&buildtime; &gcc-2953-time;
-&diskspace; &gcc-2953-compsize;</screen>
+<indexterm zone="ch-system-gcc-2953"><primary sortas="a-GCC-2953">GCC-2953</primary></indexterm>
-<sect2><title></title>
-<literallayout>Official download location for GCC-2 (&gcc-2953-version;):
-<ulink url="ftp://ftp.gnu.org/pub/gnu/gcc/"/>
-And for the GCC-2 Patch:
-<ulink url="&patches-root;&gcc-2953-patch;"/>
-And for the GCC-2 No-Fixincludes Patch:
-<ulink url="&patches-root;&gcc-2953-no-fixinc-patch;"/>
-And for the GCC-2 Return-Type Patch:
-<ulink url="&patches-root;&gcc-2953-returntype-fix-patch;"/></literallayout>
-</sect2>
-
-<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+<screen>&buildtime; 1.5 SBU
+&buildtime; 130 MB</screen>
<sect2>
<title>Installation of GCC</title>
@@ -24,16 +18,16 @@ And for the GCC-2 Return-Type Patch:
<para>This package is known to behave badly when you have changed its
default optimization flags (including the -march and -mcpu options).
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 un-setting
or modifying them when building GCC.</para>
<para>This is an older release of GCC which we are going to install for the
-purpose of compiling the Linux kernel in <xref linkend="chapter-mixture"/>. This
-version is recommended
-by the kernel developers when you need absolute stability. Later versions of
-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>
+purpose of compiling the Linux kernel in <xref linkend="chapter-bootable"/>.
+This version is recommended by the kernel developers when you need absolute
+stability. Later versions of 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
@@ -46,9 +40,9 @@ the system GCC already installed in <filename class="directory">/usr</filename>
<para>Apply the patches and make a small adjustment:</para>
-<screen><userinput>patch -Np1 -i ../&gcc-2953-patch;
-patch -Np1 -i ../&gcc-2953-no-fixinc-patch;
-patch -Np1 -i ../&gcc-2953-returntype-fix-patch;
+<screen><userinput>patch -Np1 -i ../gcc-&gcc-2953-version;-2.patch
+patch -Np1 -i ../gcc-&gcc-2953-version;-no-fixinc.patch
+patch -Np1 -i ../gcc-&gcc-2953-version;-returntype-fix.patch
echo timestamp &gt; gcc/cstamp-h.in</userinput></screen>
<para>The GCC documentation recommends building GCC outside of the source
@@ -59,13 +53,12 @@ cd ../gcc-2-build</userinput></screen>
<para>Compile and install the compiler:</para>
-<screen><userinput>../&gcc-2953-dir;/configure --prefix=/opt/&gcc-2953-dir; \
-&nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --enable-languages=c \
-&nbsp;&nbsp;&nbsp;&nbsp;--enable-threads=posix
+<screen><userinput>../gcc-&gcc-2953-version;/configure --prefix=/opt/gcc-&gcc-2953-version; \
+ --enable-shared --enable-languages=c \
+ --enable-threads=posix
make bootstrap
make install</userinput></screen>
</sect2>
</sect1>
-