Build Probs. - CFLAGS ignored

Ian Lance Taylor iant@google.com
Wed May 27 01:20:00 GMT 2009


Jason Ouellette <jouellette@gmail.com> writes:

> My CFLAGS environment variable is completely ignored and as a result,
> some of the files get compiled for 32bits and some 64bits, so when it
> tries to link them, it fails. At least, that's what I think is
> happening.

Next time, tell us exactly how you ran configure and exactly how you ran
make.

What you are looking for is STAGE1_CFLAGS to set the flags to use when
building stage 1 and BOOT_CFLAGS to set the flags to use when building
stages 2 and 3.  Perhaps something like:
    make STAGE1_CFLAGS="-m64" BOOT_CFLAGS="-m64 -O2"

Ian



More information about the Gcc-help mailing list