diff options
author | Jeremy Huntwork <jhuntwork@linuxfromscratch.org> | 2007-08-20 17:22:23 +0000 |
---|---|---|
committer | Jeremy Huntwork <jhuntwork@linuxfromscratch.org> | 2007-08-20 17:22:23 +0000 |
commit | 0d2c43f1fabf9d3af53418bfb1167ce4b8f943c8 (patch) | |
tree | 3771481aa9391fce1c3ee4c4b04b84c622d28097 /chapter06 | |
parent | a52159bf66571b6dac333f05713b00871e28b671 (diff) |
Use --with-arch on GCC instead of -march on Glibc
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8330 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/gcc.xml | 2 | ||||
-rw-r--r-- | chapter06/glibc.xml | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index 3b686e47e..6e936d6b0 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -78,7 +78,7 @@ cd ../gcc-build</userinput></screen> --libexecdir=/usr/lib --enable-shared \ --enable-threads=posix --enable-__cxa_atexit \ --enable-clocale=gnu --enable-languages=c,c++ \ - --disable-multilib</userinput></screen> + --disable-multilib --with-arch=i486</userinput></screen> <para>Compile the package:</para> diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index 7592ff183..d34fd9687 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -98,15 +98,9 @@ unset DL</userinput></screen> <screen><userinput>mkdir -v ../glibc-build cd ../glibc-build</userinput></screen> - <para>On x86 machines Glibc needs to be built with the compliler - flag <quote>-march</quote> set to at least <quote>i486</quote>:</para> - -<screen><userinput>test $(uname -m | grep i[456]86) && MARCH="-march=i486"</userinput></screen> - <para>Prepare Glibc for compilation:</para> -<screen><userinput>CC="gcc $MARCH" \ - ../glibc-&glibc-version;/configure --prefix=/usr \ +<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \ --disable-profile --enable-add-ons \ --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen> |