aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc-2953-inst.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2003-05-02 18:20:20 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2003-05-02 18:20:20 +0000
commitbc82645e958948a6aefd3147a0d7f712de9eaf6b (patch)
tree4855b70f785c1e6bf04856e97824988120503b05 /chapter06/gcc-2953-inst.xml
parent55b50e3f6653cef278bad7e45fe5a378966953a7 (diff)
Integrated Pure LFS - Phase 1
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2490 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gcc-2953-inst.xml')
-rw-r--r--chapter06/gcc-2953-inst.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/chapter06/gcc-2953-inst.xml b/chapter06/gcc-2953-inst.xml
new file mode 100644
index 000000000..2a45a5908
--- /dev/null
+++ b/chapter06/gcc-2953-inst.xml
@@ -0,0 +1,22 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
+<sect2>
+<title>Installation of GCC</title>
+
+<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
+or modifying them when building GCC.</para>
+
+<para><screen><userinput>patch -Np1 -i ../gcc-2.95.3-2.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 \
+&nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --enable-languages=c
+make bootstrap
+make install</userinput></screen></para>
+
+</sect2>
+