Changeset 0d2c43f


Ignore:
Timestamp:
08/20/2007 05:22:23 PM (17 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Children:
b8dd57d6
Parents:
a52159b
Message:

Use --with-arch on GCC instead of -march on Glibc

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

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    ra52159b r0d2c43f  
    4040      <para>2007-08-20</para>
    4141      <itemizedlist>
     42        <listitem>
     43          <para>[jhuntwork] - Use --with-arch=i486 on GCC instead of -march=i486 with Glibc.</para>
     44        </listitem>
    4245        <listitem>
    4346          <para>[bryan] - Fix typo in acknowledgements.</para>
  • chapter05/gcc-pass1.xml

    ra52159b r0d2c43f  
    4848<screen><userinput>CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \
    4949    --with-local-prefix=/tools --disable-nls --disable-shared \
    50     --enable-languages=c --disable-multilib</userinput></screen>
     50    --enable-languages=c --disable-multilib --with-arch=i486</userinput></screen>
    5151
    5252    <variablelist>
     
    9494        <listitem>
    9595          <para>We currently only want to build support for 64-bit libraries.</para>
     96        </listitem>
     97      </varlistentry>
     98
     99      <varlistentry>
     100        <term><parameter>--with-arch=i486</parameter></term>
     101        <listitem>
     102          <para>On x86 machines Glibc needs to be built for a minimum architecture
     103          of <quote>i486</quote>. Setting this for the GCC build ensures that the
     104          entire system is built consistently.</para>
    96105        </listitem>
    97106      </varlistentry>
  • chapter05/gcc-pass2.xml

    ra52159b r0d2c43f  
    141141    --enable-shared --enable-threads=posix \
    142142    --enable-__cxa_atexit --enable-languages=c,c++ \
    143     --disable-libstdcxx-pch --disable-multilib</userinput></screen>
     143    --disable-libstdcxx-pch --disable-multilib \
     144    --with-arch=i486</userinput></screen>
    144145
    145146    <variablelist>
  • chapter05/glibc.xml

    ra52159b r0d2c43f  
    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 
    5146    <para>Next, prepare Glibc for compilation:</para>
    5247
    53 <screen><userinput>CC="gcc $MARCH" \
    54     ../glibc-&glibc-version;/configure --prefix=/tools \
     48<screen><userinput>../glibc-&glibc-version;/configure --prefix=/tools \
    5549    --disable-profile --enable-add-ons \
    5650    --enable-kernel=2.6.0 --with-binutils=/tools/bin \
  • chapter06/gcc.xml

    ra52159b r0d2c43f  
    7979    --enable-threads=posix --enable-__cxa_atexit \
    8080    --enable-clocale=gnu --enable-languages=c,c++ \
    81     --disable-multilib</userinput></screen>
     81    --disable-multilib --with-arch=i486</userinput></screen>
    8282
    8383    <para>Compile the package:</para>
  • chapter06/glibc.xml

    ra52159b r0d2c43f  
    9999cd ../glibc-build</userinput></screen>
    100100
    101     <para>On x86 machines Glibc needs to be built with the compliler
    102     flag <quote>-march</quote> set to at least <quote>i486</quote>:</para>
    103 
    104 <screen><userinput>test $(uname -m | grep i[456]86) &amp;&amp; MARCH="-march=i486"</userinput></screen>
    105 
    106101    <para>Prepare Glibc for compilation:</para>
    107102
    108 <screen><userinput>CC="gcc $MARCH" \
    109     ../glibc-&glibc-version;/configure --prefix=/usr \
     103<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
    110104    --disable-profile --enable-add-ons \
    111105    --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
  • general.ent

    ra52159b r0d2c43f  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!ENTITY version "SVN-JH-20070813">
    3 <!ENTITY releasedate "August 13, 2007">
     2<!ENTITY version "SVN-JH-20070820">
     3<!ENTITY releasedate "August 20, 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.