aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/glibc.xml
diff options
context:
space:
mode:
authorJeremy Huntwork <jhuntwork@linuxfromscratch.org>2008-04-23 18:33:53 +0000
committerJeremy Huntwork <jhuntwork@linuxfromscratch.org>2008-04-23 18:33:53 +0000
commit1c6f1c1e4177cf26946a7cf8865f15be1405d9b6 (patch)
treecb3cb53a389ab6901d136fdef6ed23a8f2e30bbf /chapter05/glibc.xml
parent0fcbd171153eafae777233a0a28e46f4b40129de (diff)
Use -mtune=native for glibc. We don't want our libc optimized for 486.
It should be optimized for the local machine. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8541 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/glibc.xml')
-rw-r--r--chapter05/glibc.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml
index ddf284375..4ef95147f 100644
--- a/chapter05/glibc.xml
+++ b/chapter05/glibc.xml
@@ -55,9 +55,11 @@ cd ../glibc-build</userinput></screen>
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>