From 7a281849778fe8596dce1dbdc4d035d5faf118f3 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 17 May 2009 17:18:36 +0000 Subject: 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 --- chapter01/changelog.xml | 12 ++++++++++++ chapter06/glibc.xml | 6 ++++-- general.ent | 4 ++-- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 65e8d82f8..5c033c59f 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -37,6 +37,18 @@ --> + + 2009-05-17 + + + [bdubbs] - Add optimization (-O3 and -pipe) to + glibc in Chapter 6. + Fixes + #2299. + + + + 2009-05-16 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 mkdir -v ../glibc-build cd ../glibc-build - Again, add the needed compiler flags to CFLAGS for x86 machines: + 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). 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 Prepare Glibc for compilation: diff --git a/general.ent b/general.ent index 341dfdf5c..31fe18941 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - - + + -- cgit v1.2.3-54-g00ecf