A little help....

Ian Lance Taylor ian@wasabisystems.com
Wed Jan 28 19:26:00 GMT 2004


"Dave Korn" <dk@artimi.com> writes:

>   Erm.... I may be being stupid, but when I've configured like this:
> 
> $ ../../dlxtools/binutils/configure  --target=dlx-elf
> --prefix=/artimi-src/gcc-build/install -v
> 
>   And I then type:
> 
> $ CFLAGS='-g -O0' make all
> 
>   Why do my binutils get built with "-g -O2"?  I thought using CFLAGS to set
> this stuff was standard, but actually when it comes to it I suppose I have
> only tried it with gcc before; does binutils have a different standard?

Well, certainly
    make CFLAGS='-g -O0' all
does what you want.

I think that's what you have to do for gcc as well.  That is, you need
to pass CFLAGS to make, not just set it in the environment.

Ian



More information about the Binutils mailing list