From 4e010de526765be098f8013a9c81bfbd0738dfab Mon Sep 17 00:00:00 2001 From: Timothy Bauscher Date: Mon, 7 Oct 2002 04:33:47 +0000 Subject: 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 --- chapter01/changelog.xml | 11 +++++++---- chapter04/gcc.xml | 10 +++++++--- chapter05/gcc-exp.xml | 6 ------ chapter05/gcc-inst.xml | 5 ++++- chapter06/gcc-inst.xml | 22 ++++++++-------------- entities/gcc.ent | 6 ++++-- 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 083c23632..e1db0b3d4 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -6,6 +6,9 @@ +October 6th, 2002 [timothy]: Switched to gcc-core and +gcc-g++. + October 6th, 2002 [timothy]: Chapter 06 - Applied Bill Maltby's grammatic-fixes patch. @@ -397,7 +400,7 @@ to include reporting typos. CPPFLAGS...re_max_failures fix which is needed on Glibc-2.1 systems. -May 30th, 2002 [markh]: Chapter 05 & 06 - Update to +May 30th, 2002 [markh]: Chapter 05 & 06 - Update to binutils-2.12.1. May 30th, 2002 [markh]: Chapter 05 - Bash: Removed @@ -506,9 +509,9 @@ two single quotes to two double quotes (the two single quotes can be mistaken for one double quote which will cause an error). May 2nd, 2002 [gerard]: Changed the -cd dir && ln -sf commands to one single command +cd dir && ln -sf commands to one single command (such as ln -sf bash $LFS/bin/sh Same goes for -cd dir && mv/cp constructions which are now replaced +cd dir && mv/cp constructions which are now replaced with constructions like mv $LFS/usr/bin/{bzcat,bzip2} $LFS/bin @@ -530,7 +533,7 @@ that if you want to manually install some locales, instead of all of them, then you first need to create the /usr/lib/locale directory. -April 21st,2002 [gerard & markh]: Upgraded to +April 21st,2002 [gerard & markh]: Upgraded to MAKEDEV-1.5 April 12th, 2002 [markh]: Added entities/ directory to diff --git a/chapter04/gcc.xml b/chapter04/gcc.xml index 84f9d9ca6..59b15653f 100644 --- a/chapter04/gcc.xml +++ b/chapter04/gcc.xml @@ -1,3 +1,7 @@ -GCC (&gcc-version;) - &gcc-size;: - - +GCC-core (&gcc-version;) - &gcc-core-size;: + + + +GCC-g++ (&gcc-version;) - &gcc-g-size;: + + 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. ---enable-languages=c: 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. - echo "#define HAVE_GAS_HIDDEN 1": This defines the .hidden assembler directive so that we don't build a faulty Glibc later on. @@ -31,4 +26,3 @@ packages to compile them statically. creates the $LFS/static/bin/gcc symlink, which some packages need. - 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. +We won't be needing a C++ compiler until Chapter 6. So, only +the gcc-core tarball needs to be unpacked at this time. + 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. 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 && diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml index 73c72211c..e103903d5 100644 --- a/chapter06/gcc-inst.xml +++ b/chapter06/gcc-inst.xml @@ -9,26 +9,21 @@ commands. default optimization flags (including the -march and -mcpu options). GCC is best left alone. Therefore, if you have defined any environment variables that override default optimizations, such as CFLAGS and CXXFLAGS, we -recommend unsetting or modifying them when building Gcc. You have +recommend unsetting or modifying them when building GCC. You have been warned. -Install GCC by running the following commands. These commands will build -the C and C++ compiler. Other compilers are available within the gcc -package. If you want to build all the other available compilers too, -leave out the --enable-languages=c,c++ option in the configure command. -See the GCC documentation for more details on which additional compilers -are available. - -Note: the build of other compilers is not tested by the people -who actively work on LFS. +Install GCC by running the following commands. These commands will +build the C and C++ compilers, so you'll need to unpack both the gcc-core +and gcc-g++ tarballs. Other compilers are available in the full gcc package; +instructions for building them may be found at +. patch -Np1 -i ../gcc-&gcc-patch-version;.patch && mkdir ../gcc-build && cd ../gcc-build && ../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \ -    --enable-languages=c,c++ --enable-threads=posix \ -    --with-slibdir=/lib --enable-__cxa_atexit \ -    --enable-clocale=gnu && +    --enable-threads=posix --with-slibdir=/lib \ +    --enable-__cxa_atexit --enable-clocale=gnu && make bootstrap && make install && ln -s ../usr/bin/cpp /lib && @@ -36,4 +31,3 @@ ln -s ../bin/cpp /usr/lib && ln -s gcc /usr/bin/cc - diff --git a/entities/gcc.ent b/entities/gcc.ent index e049288a4..348a6c678 100644 --- a/entities/gcc.ent +++ b/entities/gcc.ent @@ -17,10 +17,12 @@ - + + - + + -- cgit v1.2.3-54-g00ecf