build: do not override gnulib-provided AM_CFLAGS options

Avoid a warning from automake:
lib/Makefile.am:23: AM_CFLAGS multiply defined in condition TRUE ...
lib/gnulib.mk:30: ... `AM_CFLAGS' previously defined here
lib/Makefile.am:18:   `lib/gnulib.mk' included from here

* lib/Makefile.am (AM_CFLAGS): Append $(WARN_CFLAGS) and
$(WERROR_CFLAGS), i.e., use "+=", not "=".
This was introduced via 2009-12-17 commit e58efa5b
"build: enable warnings and -Werror.",
but fortunately is not a bug, because the definition
it would have overridden was always empty.
This commit is contained in:
Jim Meyering 2010-01-17 11:39:00 +01:00
parent f51320402b
commit 6bb6713807

View File

@ -20,4 +20,4 @@ include gnulib.mk
noinst_HEADERS += cmpbuf.h prepargs.h
libdiffutils_a_SOURCES += cmpbuf.c prepargs.c
AM_CFLAGS = $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)
AM_CFLAGS += $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)