* [PATCH] mandoc & pcc
@ 2011-02-24 11:06 Kristaps Dzonsons
2011-02-24 11:35 ` Joerg Sonnenberger
0 siblings, 1 reply; 2+ messages in thread
From: Kristaps Dzonsons @ 2011-02-24 11:06 UTC (permalink / raw)
To: tech, joerg
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
The following allows mandoc to be compiled with pcc, which didn't work
before because the strlcat/strlcpy test returned bogus results (the -W
flag for flagging missing function prototypes didn't work).
Joerg, can you verify that this works ok with your zany architectures
out there?
Thanks,
Kristaps
[-- Attachment #2: patch.pcc.txt --]
[-- Type: text/plain, Size: 1064 bytes --]
? config.h
? config.log
? foo.1
? mandoc
? patch.eqn.txt
? patch.eqn2.txt
? patch.foo1.txt
? patch.foo2.txt
? patch.ns.txt
? patch.pcc.txt
? patch.txt
? test-foo.c
? regress/output
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v
retrieving revision 1.311
diff -u -r1.311 Makefile
--- Makefile 9 Feb 2011 10:03:02 -0000 1.311
+++ Makefile 24 Feb 2011 11:04:43 -0000
@@ -333,13 +333,13 @@
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 \
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mandoc & pcc
2011-02-24 11:06 [PATCH] mandoc & pcc Kristaps Dzonsons
@ 2011-02-24 11:35 ` Joerg Sonnenberger
0 siblings, 0 replies; 2+ messages in thread
From: Joerg Sonnenberger @ 2011-02-24 11:35 UTC (permalink / raw)
To: tech
On Thu, Feb 24, 2011 at 12:06:53PM +0100, Kristaps Dzonsons wrote:
> The following allows mandoc to be compiled with pcc, which didn't
> work before because the strlcat/strlcpy test returned bogus results
> (the -W flag for flagging missing function prototypes didn't work).
>
> Joerg, can you verify that this works ok with your zany
> architectures out there?
Just commit it. It's fine.
Joerg
--
To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-24 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24 11:06 [PATCH] mandoc & pcc Kristaps Dzonsons
2011-02-24 11:35 ` Joerg Sonnenberger
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).