This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to include $(CFLAGS) into specflags


>>>>> "Pavel" == Pavel Roskin <pavel_roskin@geocities.com> writes:

Pavel> prog_CFLAGS is used instead of AM_CFLAGS. AM_CFLAGS is
Pavel> discarded for program-specific objects. CFLAGS is still used
Pavel> for all objects.

Pavel> This is not so harmful as replacing CFLAGS, since using
Pavel> AM_CFLAGS is kind of advanced use, so explicit adding AM_CFLAGS
Pavel> to prog_CFLAGS will not complicate things very much. Cases when
Pavel> AM_CFLAGS should be replaced are perhaps not so singular as
Pavel> those when CFLAGS can do any harm.

The argument here is that AM_CFLAGS is for adding to CFLAGS on a
per-Makefile basis.  If you want AM_CFLAGS in your per-exe flags, you
can easily add it.  We can't omit CFLAGS, however, as that is a user
variable.

T




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]