diff options
-rw-r--r-- | chapter01/changelog.xml | 5 | ||||
-rw-r--r-- | chapter05/glibc.xml | 6 | ||||
-rw-r--r-- | chapter06/glibc.xml | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 952eddcd7..371860310 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -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> 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" > configparms</userinput></screen> +<screen><userinput remap="configure">echo "CFLAGS += -march=i486 -mtune=native" > configparms</userinput></screen> <para>Next, prepare Glibc for compilation:</para> diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index ef9f528d2..65a4383d7 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -104,7 +104,7 @@ cd ../glibc-build</userinput></screen> <para>Again, add the needed compiler flag to CFLAGS:</para> -<screen><userinput remap="configure">echo "CFLAGS += -march=i486" > configparms</userinput></screen> +<screen><userinput remap="configure">echo "CFLAGS += -march=i486 -mtune=native" > configparms</userinput></screen> <para>Prepare Glibc for compilation:</para> |