This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: A little help....


"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


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