summaryrefslogtreecommitdiffstatshomepage
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
commitdf4412e57f30f63e5bd514270e2aaa5c24267171 (patch)
tree486972e0a076e09b3743ce99bb3bc9102ed516b6
parent73aca81b50073109b137bba659d38af11d7194ac (diff)
downloadmandoc-df4412e57f30f63e5bd514270e2aaa5c24267171.tar.gz
mandoc-df4412e57f30f63e5bd514270e2aaa5c24267171.tar.zst
mandoc-df4412e57f30f63e5bd514270e2aaa5c24267171.zip
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; \