diff options
Diffstat (limited to 'chapter05/gcc-inst.xml')
-rw-r--r-- | chapter05/gcc-inst.xml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml index 021dd9b03..661726347 100644 --- a/chapter05/gcc-inst.xml +++ b/chapter05/gcc-inst.xml @@ -1,6 +1,10 @@ <sect2> <title>Installation of GCC</title> +<para>This package requires its patch to be applied before you can +install it. Make sure it's unpacked before running the installation +commands.</para> + <para>This package is known to behave badly when you have changed its default optimization flags (including the -march and -mcpu options). GCC is best left alone. Therefore, if you have defined any environment variables @@ -14,8 +18,8 @@ been warned.</para> mkdir ../gcc-build && cd ../gcc-build && ../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c \ - --disable-nls --disable-shared --enable-threads=posix \ - --enable-__cxa-atexit && + --disable-nls --disable-shared --enable-threads=posix && +echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h && make BOOT_LDFLAGS=-static bootstrap && make prefix=$LFS/static install && ln -s gcc $LFS/static/bin/cc</userinput></screen></para> |