diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2009-05-17 17:18:36 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2009-05-17 17:18:36 +0000 |
commit | 7a281849778fe8596dce1dbdc4d035d5faf118f3 (patch) | |
tree | dc5406c73ac9e3f9de7e85d1d584d4cfdc054e04 /chapter06 | |
parent | f2705730eedcab4a1c46d535643bff115073765c (diff) |
Add optimization (-O3 and -pipe) to glibc in Chapter 6
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8885 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/glibc.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index 9ddb9bd58..94d69b021 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -109,10 +109,12 @@ unset DL</userinput></screen> <screen><userinput remap="pre">mkdir -v ../glibc-build cd ../glibc-build</userinput></screen> - <para>Again, add the needed compiler flags to CFLAGS for x86 machines:</para> + <para>As in Chapter 5, add the needed compiler flags to CFLAGS for x86 machines. + Here, the optimization of the library is also set for the gcc compiler to + enhance compilation speed (-pipe) and package performance (-O3).</para> <screen><userinput remap="configure">case `uname -m` in - i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;; + i?86) echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms ;; esac</userinput></screen> <para>Prepare Glibc for compilation:</para> |