From df4412e57f30f63e5bd514270e2aaa5c24267171 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 1 Jan 2010 17:25:07 +0000 Subject: CFLAGS need -Werror to make the strlcpy/strlcat check work. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 09602188..d62c708b 100644 --- a/Makefile +++ b/Makefile @@ -263,11 +263,11 @@ config.h: config.h.pre config.h.post rm -f config.log ( cat config.h.pre; \ echo; \ - if $(CC) $(CFLAGS) -c test-strlcat.c >> config.log 2>&1; then \ + if $(CC) $(CFLAGS) -Werror -c test-strlcat.c >> config.log 2>&1; then \ echo '#define HAVE_STRLCAT'; \ rm test-strlcat.o; \ fi; \ - if $(CC) $(CFLAGS) -c test-strlcpy.c >> config.log 2>&1; then \ + if $(CC) $(CFLAGS) -Werror -c test-strlcpy.c >> config.log 2>&1; then \ echo '#define HAVE_STRLCPY'; \ rm test-strlcpy.o; \ fi; \ -- cgit v1.2.3-56-ge451