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/binutils-pass1.xml

    ra6be895 r4759793f  
    5858    </note>
    5959
    60     <para>Test to see if the host is a 64-bit capable machine and set a variable
    61     if it is.</para>
    62 
    63 <screen><userinput>test $(uname -m | grep 64) &amp;&amp; M64="-m64"</userinput></screen>
    64 
    6560    <para>Now prepare Binutils for compilation:</para>
    6661
    67 <screen><userinput>CC="gcc -B/usr/bin/ $M64" ../binutils-&binutils-version;/configure \
    68     --prefix=/tools --disable-nls --disable-werror
    69 unset M64</userinput></screen>
     62<screen><userinput>CC="gcc -B/usr/bin/" ../binutils-&binutils-version;/configure \
     63    --prefix=/tools --disable-nls --disable-werror</userinput></screen>
    7064
    7165    <variablelist>
     
    7367
    7468      <varlistentry>
    75         <term><envar>CC="gcc -B/usr/bin/ $M64"</envar></term>
     69        <term><envar>CC="gcc -B/usr/bin/"</envar></term>
    7670        <listitem>
    7771          <para>This forces <command>gcc</command> to prefer the linker from
     
    8074          built here is not compatible with the host's <command>gcc</command>.
    8175          </para>
    82           <para>Also, if the cpu-type is 64-bit capable, the variable <envar>$M64</envar>
    83           will contain the parameter <parameter>-m64</parameter>. Otherwise, the
    84           variable is empty. The parameter forces <command>gcc</command> to build
    85           64-bit binaries. Using that parameter here and for the next package
    86           ensures creation of a linker, assembler and compiler that will in turn
    87           create only 64-bit binaries. This is necessary since currently this book
    88           does not support the creation of multilib systems, i.e., those with both
    89           32-bit and 64-bit libraries. This will only make a difference on hosts that
    90           are themselves multilib and employ a compiler that creates 32-bit binaries
    91           by default.</para>
    9276        </listitem>
    9377      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.