On Fri, 05 Oct 2007 13:16:53 -0500, Bruce Dubbs <[EMAIL PROTECTED]> 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 > done > > 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). > > to > > 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 :-) -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
