aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/gcc-pass2-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 /chapter05/gcc-pass2-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 'chapter05/gcc-pass2-inst.xml')
-rw-r--r--chapter05/gcc-pass2-inst.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/chapter05/gcc-pass2-inst.xml b/chapter05/gcc-pass2-inst.xml
new file mode 100644
index 000000000..ed1522c0c
--- /dev/null
+++ b/chapter05/gcc-pass2-inst.xml
@@ -0,0 +1,27 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
+<sect2>
+<title>Installation of GCC</title>
+
+<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-3.2.3.patch
+patch -Np1 -i ../gcc-&gcc-version;-mmap_test.patch
+patch -Np1 -i ../gcc-&gcc-version;-no_fixedincludes.patch
+patch -Np1 -i ../gcc-&gcc-version;-libstdc++_no_debug.patch
+patch -Np1 -i ../gcc-&gcc-version;-libgcc_no_debug.patch </userinput></screen></para>
+
+<para><screen><userinput>mkdir ../gcc-build
+cd ../gcc-build</userinput></screen></para>
+
+<para><screen><userinput>CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \
+&nbsp;&nbsp;&nbsp;&nbsp;../gcc-&gcc-version;/configure --prefix=/stage1 \
+&nbsp;&nbsp;&nbsp;&nbsp;--with-local-prefix=/stage1 \
+&nbsp;&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --enable-shared \
+&nbsp;&nbsp;&nbsp;&nbsp;--enable-threads=posix --enable-__cxa_atexit \
+&nbsp;&nbsp;&nbsp;&nbsp;--enable-version-specific-runtime-libs
+make BOOT_LDFLAGS="-s" BOOT_CFLAGS="-O2 -pipe" \
+&nbsp;&nbsp;&nbsp;&nbsp;STAGE1_CFLAGS="-pipe" bootstrap
+make -k check
+make install</userinput></screen></para>
+
+</sect2>
+