build: do not override gnulib-provided AM_CFLAGS options
authorJim Meyering <meyering@redhat.com>
Mon, 11 Jan 2010 10:51:13 +0000 (11:51 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 11 Jan 2010 10:53:55 +0000 (11:53 +0100)
commit033dda0eeed5b886eb862ba6e12628f2e4011324
tree038609619c3dda6944ee2b2658866b90f9e65c45
parentb9e94c93df914bd1d9eec9f150b2e4e00702ae7b
build: do not override gnulib-provided AM_CFLAGS options

Avoid a warning from automake:
lib/Makefile.am:24: AM_CFLAGS multiply defined in condition TRUE ...
lib/gnulib.mk:30: ... `AM_CFLAGS' previously defined here
lib/Makefile.am:20:   `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 0341fc22,
"build: with --enable-gcc-warnings, use -Werror",
but fortunately is not a bug, because the definition
it would have overridden was always empty.
lib/Makefile.am