]> git.cameronkatri.com Git - mandoc.git/commitdiff
CFLAGS need -Werror to make the strlcpy/strlcat check work.
authorKristaps Dzonsons <kristaps@bsd.lv>
Fri, 1 Jan 2010 17:25:07 +0000 (17:25 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Fri, 1 Jan 2010 17:25:07 +0000 (17:25 +0000)
Makefile

index 096021886f618b0588c1283e60ecebcaa285b7bd..d62c708bc9e36e170719a329ac940fbce7a2b67a 100644 (file)
--- 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; \