Re: CFLAGS += in various Makefile.am's



>>>>> "ERDI" == ERDI Gergo <cactus cactus rulez org> writes:

ERDI> I guess the idea here is to support CFLAGS supplied at
ERDI> configuration time, but at least automake 1.5 doesn't like this
ERDI> approach, and complains about += working only after the
ERDI> variable's initial value is set.  so another solution should be
ERDI> found for honoring user-supplied CFLAGS.

I don't know the context here, but...

Don't ever set CFLAGS or CXXFLAGS or any other user variable in
Makefile.am.  Instead, set the AM_ version.  For instance, use
AM_CFLAGS to pass options to all C compiles.

Tom
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]