Ignore:
Timestamp:
08/08/2007 07:48:21 PM (17 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Children:
ade70e8
Parents:
ea8f9e2
Message:

Add -march=i486 to Glibc for x86 builds as default of i386 is incompatible.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8305 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/glibc.xml

    rea8f9e2 r63add56  
    4444cd ../glibc-build</userinput></screen>
    4545
     46    <para>On x86 machines Glibc needs to be built with the compliler
     47    flag <quote>-march</quote> set to at least <quote>i486</quote>:</para>
     48
     49<screen><userinput>test $(uname -m | grep i[456]86) &amp;&amp; MARCH="-march=i486"</userinput></screen>
     50
    4651    <para>Next, prepare Glibc for compilation:</para>
    4752
    48 <screen><userinput>../glibc-&glibc-version;/configure --prefix=/tools \
     53<screen><userinput>CC="gcc $MARCH" \
     54    ../glibc-&glibc-version;/configure --prefix=/tools \
    4955    --disable-profile --enable-add-ons \
    5056    --enable-kernel=2.6.0 --with-binutils=/tools/bin \
Note: See TracChangeset for help on using the changeset viewer.