From b43aab15735430e5973ca9022bcde67bccbc7ff5 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Wed, 5 Sep 2001 14:13:36 +0000 Subject: [PATCH] Added notes that gcc, binutils and glibc behave badly when optimized and thus should be left alone. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1172 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 +++++ chapter05/binutils-inst.xml | 6 ++++++ chapter05/gcc-inst.xml | 6 ++++++ chapter06/binutils-inst.xml | 6 ++++++ chapter06/gcc-inst.xml | 6 ++++++ chapter06/glibc-inst.xml | 6 ++++++ 6 files changed, 35 insertions(+) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 2ffbe05d1..760fd8d3c 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -5,6 +5,11 @@ +September 5th, 2001 [gerard]: Chapters 5 & 6: Added +notes to the gcc, binutils and glibc installations that these packages +behave badly when the default optimization flags are changed and should +be left alone. + September 4th, 2001 [gerard]: Chapter 6-Bzip2: Added ln command to create /lib/libbz2.so diff --git a/chapter05/binutils-inst.xml b/chapter05/binutils-inst.xml index 6e6d242d2..5205ad482 100644 --- a/chapter05/binutils-inst.xml +++ b/chapter05/binutils-inst.xml @@ -1,6 +1,12 @@ Installation of Binutils +This package is known to behave badly when you have changed it's default +optimization flags (including the -march and -mcpu options). Binutils is +best left alone, so we recommend you unsetting CFLAGS, CXXFLAGS and other +such variables/settings that would change the default optimization that +it comes with. + Install Binutils by running the following commands: ./configure --prefix=$LFS/usr --disable-nls && diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml index 253a12df8..575ee0141 100644 --- a/chapter05/gcc-inst.xml +++ b/chapter05/gcc-inst.xml @@ -1,6 +1,12 @@ Installation of GCC +This package is known to behave badly when you have changed it's default +optimization flags (including the -march and -mcpu options). GCC is best +left alone, so we recommend you unsetting CFLAGS, CXXFLAGS and other +such variables/settings that would change the default optimization that +it comes with. + Install GCC by running the following commands: patch -Np1 -i ../gcc-&gcc-patch-version;.patch && diff --git a/chapter06/binutils-inst.xml b/chapter06/binutils-inst.xml index 987568096..933fb83cc 100644 --- a/chapter06/binutils-inst.xml +++ b/chapter06/binutils-inst.xml @@ -1,5 +1,11 @@ Installation of Binutils +This package is known to behave badly when you have changed it's +default optimization flags (including the -march and -mcpu options). Binutils +is best left alone, so we recommend you unsetting CFLAGS, CXXFLAGS and other +such variables/settings that would change the default optimization that +it comes with. + Install Binutils by running the following commands: ./configure --prefix=/usr --enable-shared && diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml index ae56e5ee4..2bc3a397c 100644 --- a/chapter06/gcc-inst.xml +++ b/chapter06/gcc-inst.xml @@ -1,6 +1,12 @@ Installation of GCC +This package is known to behave badly when you have changed it's default +optimization flags (including the -march and -mcpu options). GCC is best +left alone, so we recommend you unsetting CFLAGS, CXXFLAGS and other +such variables/settings that would change the default optimization that +it comes with. + 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 availble compilers too, diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml index 2f6326863..69e7e9813 100644 --- a/chapter06/glibc-inst.xml +++ b/chapter06/glibc-inst.xml @@ -6,6 +6,12 @@ glibc-&glibc-version; directory and unpack glibc-linuxthreads inside the glibc-&glibc-version; directory, not in /usr/src as you normally would do. +This package is known to behave badly when you have changed it's default +optimization flags (including the -march and -mcpu options). Glibc is +best left alone, so we recommend you unsetting CFLAGS, CXXFLAGS and other +such variables/settings that would change the default optimization that +it comes with. + Install Glibc by running the following commands: mknod -m 0666 /dev/null c 1 3 &&