diff options
author | Timothy Bauscher <timothy@linuxfromscratch.org> | 2002-10-07 04:33:47 +0000 |
---|---|---|
committer | Timothy Bauscher <timothy@linuxfromscratch.org> | 2002-10-07 04:33:47 +0000 |
commit | 4e010de526765be098f8013a9c81bfbd0738dfab (patch) | |
tree | 69ce56880da9f87a6c82b15ce93b42db6a953e57 /chapter05 | |
parent | ee9c1597ca7ca09fdb09050b6148e77ede79aa0f (diff) |
Switch to gcc-core and gcc-g++. Change '&' to '&'
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2168 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r-- | chapter05/gcc-exp.xml | 6 | ||||
-rw-r--r-- | chapter05/gcc-inst.xml | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/chapter05/gcc-exp.xml b/chapter05/gcc-exp.xml index 4ea02babf..764419fcf 100644 --- a/chapter05/gcc-exp.xml +++ b/chapter05/gcc-exp.xml @@ -14,11 +14,6 @@ codes some paths while compiling and so we need to pass /static as the prefix during ./configure. We pass the real install prefix during the make install command later.</para> -<para><userinput>--enable-languages=c:</userinput> This builds the C -compiler. The C++ compiler will be built in Chapter 6, when we rebuild -GCC. Other compilers are available as well. If they are needed, -the --enable-languages parameter may be omitted.</para> - <para><userinput>echo "#define HAVE_GAS_HIDDEN 1":</userinput> This defines the .hidden assembler directive so that we don't build a faulty Glibc later on.</para> @@ -31,4 +26,3 @@ packages to compile them statically.</para> creates the $LFS/static/bin/gcc symlink, which some packages need.</para> </sect2> - diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml index 997b7b7fb..3f8f8d5b3 100644 --- a/chapter05/gcc-inst.xml +++ b/chapter05/gcc-inst.xml @@ -5,6 +5,9 @@ install it. Make sure it's unpacked before running the installation commands.</para> +<para>We won't be needing a C++ compiler until Chapter 6. So, only +the gcc-core tarball needs to be unpacked at this time.</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 @@ -18,7 +21,7 @@ been warned.</para> patch -Np1 -i ../gcc-3.2-nofixincludes-2.patch && mkdir ../gcc-build && cd ../gcc-build && -../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c \ +../gcc-&gcc-version;/configure --prefix=/static \ --disable-nls --disable-shared && echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h && make BOOT_LDFLAGS=-static bootstrap && |