* mdocml: Allow compilation with pcc, which has interesting/broken
@ 2011-02-24 14:30 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-02-24 14:30 UTC (permalink / raw)
To: source
Log Message:
-----------
Allow compilation with pcc, which has interesting/broken handling of -W
with missing function prototypes. Ok joerg@.
Modified Files:
--------------
mdocml:
Makefile
Revision Data
-------------
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v
retrieving revision 1.311
retrieving revision 1.312
diff -LMakefile -LMakefile -u -p -r1.311 -r1.312
--- Makefile
+++ 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 \
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-24 14:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24 14:30 mdocml: Allow compilation with pcc, which has interesting/broken kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).