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 --- chapter06/glibc.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chapter06') 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: -- cgit v1.2.3-54-g00ecf