Just some tidbits. I've mentioned before that GCC can be compiled with --with-cpu=i686 (this sets the default -mtune) and --with-arch=i486 (this sets the default -march).
Some distros are now adding "-O1 --hash-style=gnu" to gcc specs, for linking.
This can be done in gcc/config/i386/linux.h, in "#define LINK_SPEC".
In gcc/config/i386/linux.h "#define CC1_SPEC", and in "gcc/gcc.c" "#define
CC1PLUS_SPEC", this can be added to set -fomit-frame-pointer by default:
%{!pg:%{!fno-omit-frame-pointer: -fomit-frame-pointer}}
I've tried it, and it seems to work. I prefer this, instead of setting CFLAGS
in the environment, because it allows packages to use whatever CFLAGS they
like, while also using -fomit-frame-pointer (and my -mtune and -march) by
default.
Some packages will try to use their own CFLAGS, but will use our CFLAGS if it
is set in the environment. Using GCC specs allows both to work at the same
time.
robert
pgpUp6wngej3v.pgp
Description: PGP signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-chat FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
