aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-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>