On Mon, 19 Apr 2004 09:50:55 +1000
Conrad Parker <conrad(a)metadecks.org> wrote:
On Sun, Apr 18, 2004 at 08:11:08PM +1000, Luke
Yelavich wrote:
If a package's configure script doesn't recognize CFLAGS, it is a bug.
Report it as such.
The configure scripts do recognise CFLAGS, however the custom CFLAGS either
replace CFLAGS necessary for the package, or the package uses the same
flags with different parameters, eg -march and -mcpu flags.
packages using automake should only set AM_CFLAGS, AM_INCLUDES, AM_LDFLAGS
etc. in Makefile.am. Resetting CFLAGS, INCLUDES, LDFLAGS etc. is a bug
(which I've also been guiltly of many times :)
I often do:
CFLAGS="$CFLAGS -Wall-sorts-of-warnings"
Is that OK? Note that it only appends stuff the CFLAGS, it does not modify
stuff that is already there.
Erik