Author: jhuntwork
Date: 2008-04-23 12:33:53 -0600 (Wed, 23 Apr 2008)
New Revision: 8541

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/glibc.xml
   trunk/BOOK/chapter06/glibc.xml
Log:
Use -mtune=native for glibc. We don't want our libc optimized for 486.
It should be optimized for the local machine.


Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2008-04-23 18:03:50 UTC (rev 8540)
+++ trunk/BOOK/chapter01/changelog.xml  2008-04-23 18:33:53 UTC (rev 8541)
@@ -40,6 +40,11 @@
       <para>2008-04-23</para>
       <itemizedlist>
         <listitem>
+          <para>[jhuntwork] - Use -mtune=native for glibc. We don't
+         want our libc optimized for 486. It should be optimized
+         for the local machine.</para>
+        </listitem>
+        <listitem>
           <para>[jhuntwork] - Updated Autoconf to 2.62.</para>
         </listitem>
        <listitem>

Modified: trunk/BOOK/chapter05/glibc.xml
===================================================================
--- trunk/BOOK/chapter05/glibc.xml      2008-04-23 18:03:50 UTC (rev 8540)
+++ trunk/BOOK/chapter05/glibc.xml      2008-04-23 18:33:53 UTC (rev 8541)
@@ -55,9 +55,11 @@
     the flag is best placed inside the build variable <quote>CFLAGS</quote>.
     Instead of overriding completely what Glibc's internal build system uses
     for CFLAGS, append the new flag to the existing contents of CFLAGS by
-    making use of the special file <filename>configparms</filename>:</para>
+    making use of the special file <filename>configparms</filename>. The
+    -mtune=native flag is also necessary to reset a reasonable value for -mtune
+    that is changed when setting -march.</para>
 
-<screen><userinput remap="configure">echo "CFLAGS += -march=i486" &gt; 
configparms</userinput></screen>
+<screen><userinput remap="configure">echo "CFLAGS += -march=i486 
-mtune=native" &gt; configparms</userinput></screen>
 
     <para>Next, prepare Glibc for compilation:</para>
 

Modified: trunk/BOOK/chapter06/glibc.xml
===================================================================
--- trunk/BOOK/chapter06/glibc.xml      2008-04-23 18:03:50 UTC (rev 8540)
+++ trunk/BOOK/chapter06/glibc.xml      2008-04-23 18:33:53 UTC (rev 8541)
@@ -104,7 +104,7 @@
 
     <para>Again, add the needed compiler flag to CFLAGS:</para>
 
-<screen><userinput remap="configure">echo "CFLAGS += -march=i486" &gt; 
configparms</userinput></screen>
+<screen><userinput remap="configure">echo "CFLAGS += -march=i486 
-mtune=native" &gt; configparms</userinput></screen>
 
     <para>Prepare Glibc for compilation:</para>
 

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to