Changeset b8dd57d6


Ignore:
Timestamp:
08/30/2007 05:34:55 PM (17 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Children:
f65c459
Parents:
0d2c43f
Message:

Use --with-arch=i486 only for x86. Also force '-m64' for 64-bit builds.

Lastly, use 'make' instead of 'make bootstrap' on gcc pass 1. The bootstrap is now default.

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

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r0d2c43f rb8dd57d6  
    3636    </listitem>
    3737-->
     38
     39    <listitem>
     40      <para>2007-08-30</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[jhuntwork] - Use --with-arch=i486 only for x86. Also force '-m64' for 64-bit builds.
     44          Lastly, use 'make' instead of 'make bootstrap' on gcc pass 1. The bootstrap is now default.</para>
     45        </listitem>
     46      </itemizedlist>
     47    </listitem>
    3848
    3949    <listitem>
  • chapter05/binutils-pass1.xml

    r0d2c43f rb8dd57d6  
    5858    </note>
    5959
     60    <para>If our host is a multilib machine, we want to ensure that we
     61    build 64-bit binaries, so we'll test for that and set a variable if so:</para>
     62
     63<screen><userinput>test $(uname -m | grep 64) &amp;&amp; M64="-m64"</userinput></screen>
     64
    6065    <para>Now prepare Binutils for compilation:</para>
    6166
    62 <screen><userinput>CC="gcc -B/usr/bin/" ../binutils-&binutils-version;/configure \
    63     --prefix=/tools --disable-nls --disable-werror</userinput></screen>
     67<screen><userinput>CC="gcc -B/usr/bin/ $M64" ../binutils-&binutils-version;/configure \
     68    --prefix=/tools --disable-nls --disable-werror
     69unset M64</userinput></screen>
    6470
    6571    <variablelist>
     
    114120    first pass will soon be replaced by those from the second.</para>
    115121
     122    <para>Create a symlink to ensure the sanity of our toolchain:</para>
     123
     124<screen><userinput>mkdir -v /tools/lib
     125ln -sv lib /tools/lib64</userinput></screen>
     126
    116127    <para>Install the package:</para>
    117128
    118129<screen><userinput>make install</userinput></screen>
    119130
    120     <para>Next, prepare the linker for the <quote>Adjusting</quote> phase
     131    <para>Finally, prepare the linker for the <quote>Adjusting</quote> phase
    121132    later on:</para>
    122133
     
    124135make -C ld LIB_PATH=/tools/lib
    125136cp -v ld/ld-new /tools/bin</userinput></screen>
    126 
    127     <para>Finally, create a symlink to ensure the sanity of our toolchain:</para>
    128 
    129 <screen><userinput>ln -nsv lib /tools/lib64</userinput></screen>
    130137
    131138    <variablelist>
  • chapter05/gcc-pass1.xml

    r0d2c43f rb8dd57d6  
    4444cd ../gcc-build</userinput></screen>
    4545
     46    <para>If our host is a multilib machine, we want to ensure that we
     47    build 64-bit binaries, so we'll test for that and set a variable if so.
     48    Also, the --with-arch flag is only necessary for x86 machines.</para>
     49
     50<screen><userinput>case $(uname -m) in
     51  x86) WITHARCH="--with-arch=i486" ;;
     52  x86_64) M64="-m64" ;;
     53esac</userinput></screen>
     54
    4655    <para>Prepare GCC for compilation:</para>
    4756
    48 <screen><userinput>CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \
     57<screen><userinput>CC="gcc -B/usr/bin/ $M64" ../gcc-&gcc-version;/configure --prefix=/tools \
    4958    --with-local-prefix=/tools --disable-nls --disable-shared \
    50     --enable-languages=c --disable-multilib --with-arch=i486</userinput></screen>
     59    --enable-languages=c --disable-multilib \
     60    $WITHARCH
     61unset M64 WITHARCH</userinput></screen>
    5162
    5263    <variablelist>
     
    110121    <para>Continue with compiling the package:</para>
    111122
    112 <screen><userinput>make bootstrap</userinput></screen>
    113 
    114     <variablelist>
    115       <title>The meaning of the make parameter:</title>
    116 
    117       <varlistentry>
    118         <term><parameter>bootstrap</parameter></term>
    119         <listitem>
    120           <para>This target does not just compile GCC, but compiles it
    121           several times. It uses the programs compiled in a first round
    122           to compile itself a second time, and then again a third time.
    123           It then compares these second and third compiles to make sure
    124           it can reproduce itself flawlessly. This also implies that it
    125           was compiled correctly.</para>
    126         </listitem>
    127       </varlistentry>
    128 
    129     </variablelist>
     123<screen><userinput>make</userinput></screen>
    130124
    131125    <para>Compilation is now complete. At this point, the test suite would
  • chapter05/gcc-pass2.xml

    r0d2c43f rb8dd57d6  
    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  x86) WITHARCH="--with-arch=i486" ;;
     141esac</userinput></screen>
     142
    137143    <para>Now prepare GCC for compilation:</para>
    138144
     
    142148    --enable-__cxa_atexit --enable-languages=c,c++ \
    143149    --disable-libstdcxx-pch --disable-multilib \
    144     --with-arch=i486</userinput></screen>
     150    $WITHARCH
     151unset WITHARCH</userinput></screen>
    145152
    146153    <variablelist>
  • chapter06/gcc.xml

    r0d2c43f rb8dd57d6  
    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  x86) WITHARCH="--with-arch=i486" ;;
     79esac</userinput></screen>
     80
    7581    <para>Prepare GCC for compilation:</para>
    7682
     
    7985    --enable-threads=posix --enable-__cxa_atexit \
    8086    --enable-clocale=gnu --enable-languages=c,c++ \
    81     --disable-multilib --with-arch=i486</userinput></screen>
     87    --disable-multilib $WITHARCH
     88unset WITHARCH</userinput></screen>
    8289
    8390    <para>Compile the package:</para>
Note: See TracChangeset for help on using the changeset viewer.