summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-01-01 17:25:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-01-01 17:25:07 +0000
commita4d4af491b3929e360e2636b10c3d4b90588691f (patch)
treeaa971b07ed7e5b7b7158c9b6ad889d4233a733e8
parent92f665747e9d9aecac7c203e53d4eb175e662fc8 (diff)
downloadmandoc-a4d4af491b3929e360e2636b10c3d4b90588691f.tar.gz
CFLAGS need -Werror to make the strlcpy/strlcat check work.
-rw-r--r--Makefile4
1 files 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; \