This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build Probs. - CFLAGS ignored


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]