Changeset 8541

Show
Ignore:
Timestamp:
04/23/08 12:33:53 (3 months ago)
Author:
jhuntwork
Message:

Use -mtune=native for glibc. We don't want our libc optimized for 486.
It should be optimized for the local machine.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BOOK/chapter01/changelog.xml

    r8540 r8541  
    4040      <para>2008-04-23</para> 
    4141      <itemizedlist> 
     42        <listitem> 
     43          <para>[jhuntwork] - Use -mtune=native for glibc. We don't 
     44          want our libc optimized for 486. It should be optimized 
     45          for the local machine.</para> 
     46        </listitem> 
    4247        <listitem> 
    4348          <para>[jhuntwork] - Updated Autoconf to 2.62.</para> 
  • trunk/BOOK/chapter05/glibc.xml

    r8389 r8541  
    5656    Instead of overriding completely what Glibc's internal build system uses 
    5757    for CFLAGS, append the new flag to the existing contents of CFLAGS by 
    58     making use of the special file <filename>configparms</filename>:</para> 
    59  
    60 <screen><userinput remap="configure">echo "CFLAGS += -march=i486" &gt; configparms</userinput></screen> 
     58    making use of the special file <filename>configparms</filename>. The 
     59    -mtune=native flag is also necessary to reset a reasonable value for -mtune 
     60    that is changed when setting -march.</para> 
     61 
     62<screen><userinput remap="configure">echo "CFLAGS += -march=i486 -mtune=native" &gt; configparms</userinput></screen> 
    6163 
    6264    <para>Next, prepare Glibc for compilation:</para> 
  • trunk/BOOK/chapter06/glibc.xml

    r8393 r8541  
    105105    <para>Again, add the needed compiler flag to CFLAGS:</para> 
    106106 
    107 <screen><userinput remap="configure">echo "CFLAGS += -march=i486" &gt; configparms</userinput></screen> 
     107<screen><userinput remap="configure">echo "CFLAGS += -march=i486 -mtune=native" &gt; configparms</userinput></screen> 
    108108 
    109109    <para>Prepare Glibc for compilation:</para>