diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-24 14:30:15 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-24 14:30:15 +0000 |
commit | 02996bba4cecb5eac63b76206480258122a4cd11 (patch) | |
tree | 1a8afbb299e51fcab3c1cb234682e00f5f6b1cd5 | |
parent | 31c4266a2dbfd3390f8bca31ee9f2f0baafa0a33 (diff) | |
download | mandoc-02996bba4cecb5eac63b76206480258122a4cd11.tar.gz mandoc-02996bba4cecb5eac63b76206480258122a4cd11.tar.zst mandoc-02996bba4cecb5eac63b76206480258122a4cd11.zip |
Allow compilation with pcc, which has interesting/broken handling of -W
with missing function prototypes. Ok joerg@.
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 \ |