summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-02-24 14:30:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-02-24 14:30:15 +0000
commita5961c86f30ad21cd8135e202550ca31520d4e6a (patch)
treec6fdd8954c5fffb6d8737f736e9343bf95a61124
parenta2b75631dd0c3477cb5ff08e95dd5d575007dcf4 (diff)
downloadmandoc-a5961c86f30ad21cd8135e202550ca31520d4e6a.tar.gz
Allow compilation with pcc, which has interesting/broken handling of -W
with missing function prototypes. Ok joerg@.
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f2c03eb6..ccae26fd 100644
--- a/Makefile
+++ b/Makefile
@@ -333,13 +333,13 @@ config.h: config.h.pre config.h.post
rm -f config.log
( cat config.h.pre; \
echo; \
- if $(CC) $(CFLAGS) -Werror -c test-strlcat.c >> config.log 2>&1; then \
+ if $(CC) $(CFLAGS) -Werror -o test-strlcat test-strlcat.c >> config.log 2>&1; then \
echo '#define HAVE_STRLCAT'; \
- rm test-strlcat.o; \
+ rm test-strlcat; \
fi; \
- if $(CC) $(CFLAGS) -Werror -c test-strlcpy.c >> config.log 2>&1; then \
+ if $(CC) $(CFLAGS) -Werror -o test-strlcpy test-strlcpy.c >> config.log 2>&1; then \
echo '#define HAVE_STRLCPY'; \
- rm test-strlcpy.o; \
+ rm test-strlcpy; \
fi; \
echo; \
cat config.h.post \