Ignore:
Timestamp:
09/03/2007 05:07:19 AM (17 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Children:
c11bcb7
Parents:
a6be895
Message:

Remove the -m64 sections from binutils and gcc pass 1. Tests show the 32-bit binaries produce the wanted 64-bit code.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/gcc-pass1.xml

    ra6be895 r4759793f  
    4444cd ../gcc-build</userinput></screen>
    4545
    46     <para>Test to see if the host is a multilib capable machine and set a variable
    47     if it is. This ensures that only 64-bit binaries are built if using such a host.
    48     Also, the --with-arch flag is only necessary for x86 machines.</para>
     46    <para>Set the --with-arch flag if the machine is x86:</para>
    4947
    50 <screen><userinput>case $(uname -m) in
    51   i?86) WITHARCH="--with-arch=i486" ;;
    52   x86_64) M64="-m64" ;;
    53 esac</userinput></screen>
     48<screen><userinput>test $(uname -m | grep i?86) &amp;&amp; WITHARCH="--with-arch=i486"</userinput></screen>
    5449
    5550    <para>Prepare GCC for compilation:</para>
    5651
    57 <screen><userinput>CC="gcc -B/usr/bin/ $M64" ../gcc-&gcc-version;/configure --prefix=/tools \
     52<screen><userinput>CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \
    5853    --with-local-prefix=/tools --disable-nls --disable-shared \
    5954    --enable-languages=c --disable-multilib \
    6055    $WITHARCH
    61 unset M64 WITHARCH</userinput></screen>
     56unset WITHARCH</userinput></screen>
    6257
    6358    <variablelist>
Note: See TracChangeset for help on using the changeset viewer.