-mtune for Glibc
jhuntwork at linuxfromscratch.org
Fri Oct 5 11:29:43 PDT 2007
On Fri, 05 Oct 2007 13:16:53 -0500, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
> 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 configparms. The -mtune=native flag is
> also necessary to reset a reasonable value value for -mtune that is
Ooh, double the value! :) ^^^^
> changed when setting -march.
> if [ uname -m | grep -q i[4-7]86 ]; do
> echo "CFLAGS += -march=i486 -mtune=native " > configparms
> Note that I changed the && to an if to make it more obvious that the
> grep is a test. IMO, the && would be OK if we could get the entire
> s1 && s1 on one line, but the text (after adding -mtune) is too long.
> In 6.1. Introduction, change:
> Also note that the -march and -mtune options may cause problems with the
> toolchain packages (Binutils, GCC and Glibc).
> Also note that changing the -march and -mtune options using values not
> specified in the book have not been tested. This may cause problems with
> the toolchain packages (Binutils, GCC and Glibc).
Everything looks good to me, Bruce. Patches are always welcome :-)
More information about the lfs-dev