This is the mail archive of the
newlib@sourceware.cygnus.com
mailing list for the newlib project.
Re: RFC src/configure* - "CFLAGS=-g -O" instead of "CFLAGS=... -Wall"
- To: Ian Lance Taylor <ian at zembu dot com>
- Subject: Re: RFC src/configure* - "CFLAGS=-g -O" instead of "CFLAGS=... -Wall"
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 05 Apr 2000 10:43:01 +1000
- CC: binutils at sourceware dot cygnus dot com, gdb-patches at sourceware dot cygnus dot com, newlib at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <38EA8086.344CD42A@cygnus.com> <20000405000414.1640.qmail@daffy.airs.com>
Ian Lance Taylor wrote:
>
> Date: Wed, 05 Apr 2000 09:53:42 +1000
> From: Andrew Cagney <ac131313@cygnus.com>
>
> At present the top level configure + Makefile.in force (when GCC) CFLAGS
> to:
>
> CFLAGS = -g -O -Wall
>
> I'd like to scale that back to just:
>
> CFLAGS = -g -O
>
> letting each sub directory set their own -W* policy. The src/gdb and
> src/sim directories try to do this now using separate WARN_CFLAGS (only
> they get overuled by CFLAGS :-).
>
> That was a policy I put in for the binutils. It's OK with me to
> change it provided you simultaneously change the binutils
> subdirectories (binutils, bfd, libiberty, opcodes, binutils, gas, ld,
> gprof) to default to -Wall.
How exactly do you want this done? If I add:
CFLAGS=-g -O -Wall
to the sub directory makefiles, that will just get overridden by the top
level (just like GDB suffers today).
Andrew