diff options
Diffstat (limited to 'chapter05/gcc-inst.xml')
-rw-r--r-- | chapter05/gcc-inst.xml | 7 |
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 && +<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch && +mkdir ../gcc-build && cd ../gcc-build && ../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c \ - --disable-nls --disable-shared --enable-threads=posix && -echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h && + --disable-nls --disable-shared --enable-threads=posix \ + --enable-__cxa-atexit && make BOOT_LDFLAGS=-static bootstrap && make prefix=$LFS/static install && ln -s gcc $LFS/static/bin/cc</userinput></screen></para> |