aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
authorJeremy Huntwork <jhuntwork@linuxfromscratch.org>2007-08-30 17:34:55 +0000
committerJeremy Huntwork <jhuntwork@linuxfromscratch.org>2007-08-30 17:34:55 +0000
commitb8dd57d62b02a7292f9471df350123f9d637fb51 (patch)
treeaed412a235d98164fbdf5fb65ae2841d50fc4d0b /chapter06
parent0d2c43f1fabf9d3af53418bfb1167ce4b8f943c8 (diff)
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
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/gcc.xml9
1 files changed, 8 insertions, 1 deletions
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 @@
<screen><userinput>mkdir -v ../gcc-build
cd ../gcc-build</userinput></screen>
+ <para>The --with-arch flag is only necessary for x86 machines.</para>
+
+<screen><userinput>case $(uname -m) in
+ x86) WITHARCH="--with-arch=i486" ;;
+esac</userinput></screen>
+
<para>Prepare GCC for compilation:</para>
<screen><userinput>../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</userinput></screen>
+ --disable-multilib $WITHARCH
+unset WITHARCH</userinput></screen>
<para>Compile the package:</para>