# Most of this is probably too coreutils-centric to be useful to other packages.
-warn_cflags = -Dlint -O -Werror -Wall -Wformat -Wshadow -Wpointer-arith
-
-# anonymous 'enum's are too useful to forbid. Without this, we'd get:
-# utimecmp.c:193: error: comparison between 'enum <anonymous>' and \
-# 'enum <anonymous>' when using gcc-4.5.0-20090517.
-warn_cflags += -Wno-enum-compare
-
bin=bin-$$$$
write_loser = printf '\#!%s\necho $$0: bad path 1>&2; exit 1\n' '$(SHELL)'
mkdir -p $(t)
GZIP=$(GZIP_ENV) $(AMTAR) -C $(t) -zxf $(distdir).tar.gz
cd $(t)/$(distdir) \
- && ./configure --disable-nls \
- && $(MAKE) CFLAGS='$(warn_cflags)' \
- AM_MAKEFLAGS='$(null_AM_MAKEFLAGS)' \
+ && ./configure --enable-gcc-warnings --disable-nls \
+ && $(MAKE) AM_MAKEFLAGS='$(null_AM_MAKEFLAGS)' \
&& $(MAKE) dvi \
&& $(install-transform-check) \
&& $(my-instcheck) \