This is the mail archive of the
mailing list for the binutils project.
Re: A little help....
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "Dave Korn" <dk at artimi dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: 28 Jan 2004 14:26:08 -0500
- Subject: Re: A little help....
- References: <NUTMEGcU6xfPTeip68V0000004d@NUTMEG.CAM.ARTIMI.COM>
"Dave Korn" <firstname.lastname@example.org> 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?
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.