aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/gcc-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/gcc-inst.xml')
-rw-r--r--chapter05/gcc-inst.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml
index c0a9c97ef..021dd9b03 100644
--- a/chapter05/gcc-inst.xml
+++ b/chapter05/gcc-inst.xml
@@ -10,11 +10,12 @@ been warned.</para>
<para>Install GCC by running the following commands:</para>
-<para><screen><userinput>mkdir ../gcc-build &amp;&amp;
+<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &amp;&amp;
+mkdir ../gcc-build &amp;&amp;
cd ../gcc-build &amp;&amp;
../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c \
-&nbsp;&nbsp;&nbsp;--disable-nls --disable-shared --enable-threads=posix &amp;&amp;
-echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h &amp;&amp;
+&nbsp;&nbsp;&nbsp;--disable-nls --disable-shared --enable-threads=posix \
+&nbsp;&nbsp;&nbsp;--enable-__cxa-atexit &amp;&amp;
make BOOT_LDFLAGS=-static bootstrap &amp;&amp;
make prefix=$LFS/static install &amp;&amp;
ln -s gcc $LFS/static/bin/cc</userinput></screen></para>