RFC src/configure* - "CFLAGS=-g -O" instead of "CFLAGS=... -Wall"
Ian Lance Taylor
ian@zembu.com
Thu Apr 6 09:09:00 GMT 2000
Date: Thu, 06 Apr 2000 21:43:57 +1000
From: Andrew Cagney <ac131313@cygnus.com>
Basic problem. I can't see a way of differentiating between:
make
and make WARN_CFLAGS=
This is important as the top-level make shouldn't pass down
``WARN_CFLAGS='' in the first case but should in the second.
Why?
What specification are you trying to implement?
For this to work, the sub-makefiles need to define something like
``ALL_CFLAGS'' (GDB and GCC do, BINUTILS doesn't) vis:
ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS)
what does binutils think of this?
I assume that what you mean is that the binutils should include
WARN_CFLAGS when compiling code. The binutils use automake, so this
would be done by putting
AM_CFLAGS = $(WARN_CFLAGS)
in the Makefile.am file. That would be fine.
Ian
More information about the Binutils
mailing list