From b8dd57d62b02a7292f9471df350123f9d637fb51 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Thu, 30 Aug 2007 17:34:55 +0000 Subject: Use --with-arch=i486 only for x86. Also force '-m64' for 64-bit builds. Lastly, use 'make' instead of 'make bootstrap' on gcc pass 1. The bootstrap is now default. git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8349 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/gcc.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'chapter06') diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index 6e936d6b0..1ba187316 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -72,13 +72,20 @@ mkdir -v ../gcc-build cd ../gcc-build + The --with-arch flag is only necessary for x86 machines. + +case $(uname -m) in + x86) WITHARCH="--with-arch=i486" ;; +esac + Prepare GCC for compilation: ../gcc-&gcc-version;/configure --prefix=/usr \ --libexecdir=/usr/lib --enable-shared \ --enable-threads=posix --enable-__cxa_atexit \ --enable-clocale=gnu --enable-languages=c,c++ \ - --disable-multilib --with-arch=i486 + --disable-multilib $WITHARCH +unset WITHARCH Compile the package: -- cgit v1.2.3-54-g00ecf