Changeset 4759793f


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

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    ra6be895 r4759793f  
    3838
    3939    <listitem>
     40      <para>2007-09-03</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[jhuntwork] - Remove -m64 from binutils and gcc pass 1. Tests show that the 32-bit binary
     44          versions still produce the wanted 64-bit code.</para>
     45        </listitem>
     46      </itemizedlist>
     47    </listitem>
     48
     49    <listitem>
    4050      <para>2007-08-31</para>
    4151      <itemizedlist>
  • 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>
  • 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>
  • chapter05/gcc-pass2.xml

    ra6be895 r4759793f  
    135135    variables that override the default optimization flags.</para>
    136136
    137     <para>The --with-arch flag is only necessary for x86 machines.</para>
    138 
    139 <screen><userinput>case $(uname -m) in
    140   i?86) WITHARCH="--with-arch=i486" ;;
    141 esac</userinput></screen>
     137    <para>Set the --with-arch flag if the machine is x86:</para>
     138
     139<screen><userinput>test $(uname -m | grep i?86) &amp;&amp; WITHARCH="--with-arch=i486"</userinput></screen>
    142140
    143141    <para>Now prepare GCC for compilation:</para>
  • chapter06/gcc.xml

    ra6be895 r4759793f  
    7373cd ../gcc-build</userinput></screen>
    7474
    75     <para>The --with-arch flag is only necessary for x86 machines.</para>
    76 
    77 <screen><userinput>case $(uname -m) in
    78   i?86) WITHARCH="--with-arch=i486" ;;
    79 esac</userinput></screen>
     75    <para>Set the --with-arch flag if the machine is x86:</para>
     76
     77<screen><userinput>test $(uname -m | grep i?86) &amp;&amp; WITHARCH="--with-arch=i486"</userinput></screen>
    8078
    8179    <para>Prepare GCC for compilation:</para>
  • general.ent

    ra6be895 r4759793f  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!ENTITY version "SVN-JH-20070831">
    3 <!ENTITY releasedate "August 31, 2007">
     2<!ENTITY version "SVN-JH-20070903">
     3<!ENTITY releasedate "September 03, 2007">
    44<!ENTITY milestone "7.0">
    55<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
Note: See TracChangeset for help on using the changeset viewer.