From 1c6f1c1e4177cf26946a7cf8865f15be1405d9b6 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Wed, 23 Apr 2008 18:33:53 +0000 Subject: Use -mtune=native for glibc. We don't want our libc optimized for 486. It should be optimized for the local machine. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8541 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/glibc.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chapter05') diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index ddf284375..4ef95147f 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -55,9 +55,11 @@ cd ../glibc-build the flag is best placed inside the build variable CFLAGS. Instead of overriding completely what Glibc's internal build system uses for CFLAGS, append the new flag to the existing contents of CFLAGS by - making use of the special file configparms: + making use of the special file configparms. The + -mtune=native flag is also necessary to reset a reasonable value for -mtune + that is changed when setting -march. -echo "CFLAGS += -march=i486" > configparms +echo "CFLAGS += -march=i486 -mtune=native" > configparms Next, prepare Glibc for compilation: -- cgit v1.2.3-54-g00ecf