Changes 1.25.25: * base.hpp: Fix declarations out of order causing compile failure. Broken since Xmlrpc-c 1.19 (June 2009). * Make distclean cleans up src/test/blddir and src/test/srcdir.diff -r1.32 -r1.33 pkgsrc/textproc/xmlrpc-c/Makefile
(adam)
@@ -1,33 +1,32 @@ | @@ -1,33 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.32 2013/02/06 23:21:18 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.33 2013/09/12 18:52:54 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= xmlrpc-c-1.16.44 | 3 | DISTNAME= xmlrpc-c-1.25.25 | |
4 | # the "super stable" branch | 4 | # the "super stable" branch | |
5 | PKGNAME= ${DISTNAME:S/-c-/-c-ss-/} | 5 | PKGNAME= ${DISTNAME:S/-c-/-c-ss-/} | |
6 | PKGREVISION= 2 | |||
7 | CATEGORIES= textproc devel | 6 | CATEGORIES= textproc devel | |
8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmlrpc-c/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmlrpc-c/} | |
9 | EXTRACT_SUFX= .tgz | 8 | EXTRACT_SUFX= .tgz | |
10 | 9 | |||
11 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
12 | HOMEPAGE= http://xmlrpc-c.sourceforge.net/ | 11 | HOMEPAGE= http://xmlrpc-c.sourceforge.net/ | |
13 | COMMENT= Library for writing an XML-RPC server or client in C or C++ | 12 | COMMENT= Library for writing an XML-RPC server or client in C or C++ | |
14 | LICENSE= modified-bsd | 13 | LICENSE= modified-bsd | |
15 | 14 | |||
16 | CONFLICTS+= xmlrpc-c-[0-9]* | 15 | CONFLICTS+= xmlrpc-c-[0-9]* | |
17 | SUPERSEDES+= xmlrpc-c-[0-9]* | 16 | SUPERSEDES+= xmlrpc-c-[0-9]* | |
18 | 17 | |||
19 | # Sometimes can't open ../xmltok/libxmlrpc_xmltok.la | 18 | # Sometimes can't open ../xmltok/libxmlrpc_xmltok.la | |
20 | MAKE_JOBS_SAFE= no | 19 | #MAKE_JOBS_SAFE= no | |
21 | 20 | |||
22 | USE_LANGUAGES= c99 c++ | 21 | USE_LANGUAGES= c99 c++ | |
23 | USE_LIBTOOL= yes | 22 | USE_LIBTOOL= yes | |
24 | USE_TOOLS+= gmake | 23 | USE_TOOLS+= gmake | |
25 | GNU_CONFIGURE= yes | 24 | GNU_CONFIGURE= yes | |
26 | MAKE_FILE= GNUmakefile | 25 | MAKE_FILE= GNUmakefile | |
27 | MAKE_ENV= CFLAGS_COMMON=${CFLAGS:M*:Q} | 26 | MAKE_ENV= CFLAGS_COMMON=${CFLAGS:M*:Q} | |
28 | MAKE_ENV+= CXXFLAGS_COMMON=${CXXFLAGS:M*:Q} | 27 | MAKE_ENV+= CXXFLAGS_COMMON=${CXXFLAGS:M*:Q} | |
29 | MAKE_ENV+= LADD=${LDFLAGS:M*:Q} | 28 | MAKE_ENV+= LADD=${LDFLAGS:M*:Q} | |
30 | TEST_TARGET= check | 29 | TEST_TARGET= check | |
31 | 30 | |||
32 | PTHREAD_LINKFLAGS= ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} | 31 | PTHREAD_LINKFLAGS= ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} | |
33 | SUBST_CLASSES+= pthread | 32 | SUBST_CLASSES+= pthread |
@@ -1,106 +1,107 @@ | @@ -1,106 +1,107 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.4 2011/04/06 07:45:47 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.5 2013/09/12 18:52:54 adam Exp $ | |
2 | bin/xmlrpc-c-config | 2 | bin/xmlrpc-c-config | |
3 | include/XmlRpcCpp.h | 3 | include/XmlRpcCpp.h | |
4 | include/xmlrpc-c/abyss.h | 4 | include/xmlrpc-c/abyss.h | |
5 | include/xmlrpc-c/abyss_unixsock.h | 5 | include/xmlrpc-c/abyss_unixsock.h | |
6 | include/xmlrpc-c/abyss_winsock.h | 6 | include/xmlrpc-c/abyss_winsock.h | |
7 | include/xmlrpc-c/base.h | 7 | include/xmlrpc-c/base.h | |
8 | include/xmlrpc-c/base.hpp | 8 | include/xmlrpc-c/base.hpp | |
9 | include/xmlrpc-c/c_util.h | 9 | include/xmlrpc-c/c_util.h | |
10 | include/xmlrpc-c/client.h | 10 | include/xmlrpc-c/client.h | |
11 | include/xmlrpc-c/client.hpp | 11 | include/xmlrpc-c/client.hpp | |
12 | include/xmlrpc-c/client_global.h | 12 | include/xmlrpc-c/client_global.h | |
13 | include/xmlrpc-c/client_simple.hpp | 13 | include/xmlrpc-c/client_simple.hpp | |
14 | include/xmlrpc-c/client_transport.hpp | 14 | include/xmlrpc-c/client_transport.hpp | |
15 | include/xmlrpc-c/config.h | 15 | include/xmlrpc-c/config.h | |
16 | include/xmlrpc-c/girerr.hpp | 16 | include/xmlrpc-c/girerr.hpp | |
17 | include/xmlrpc-c/girmem.hpp | 17 | include/xmlrpc-c/girmem.hpp | |
18 | include/xmlrpc-c/inttypes.h | 18 | include/xmlrpc-c/inttypes.h | |
19 | include/xmlrpc-c/json.h | |||
19 | include/xmlrpc-c/oldcppwrapper.hpp | 20 | include/xmlrpc-c/oldcppwrapper.hpp | |
20 | include/xmlrpc-c/oldxmlrpc.h | 21 | include/xmlrpc-c/oldxmlrpc.h | |
21 | include/xmlrpc-c/packetsocket.hpp | 22 | include/xmlrpc-c/packetsocket.hpp | |
22 | include/xmlrpc-c/registry.hpp | 23 | include/xmlrpc-c/registry.hpp | |
23 | include/xmlrpc-c/server.h | 24 | include/xmlrpc-c/server.h | |
24 | include/xmlrpc-c/server_abyss.h | 25 | include/xmlrpc-c/server_abyss.h | |
25 | include/xmlrpc-c/server_abyss.hpp | 26 | include/xmlrpc-c/server_abyss.hpp | |
26 | include/xmlrpc-c/server_cgi.h | 27 | include/xmlrpc-c/server_cgi.h | |
27 | include/xmlrpc-c/server_pstream.hpp | 28 | include/xmlrpc-c/server_pstream.hpp | |
28 | include/xmlrpc-c/server_w32httpsys.h | 29 | include/xmlrpc-c/server_w32httpsys.h | |
29 | include/xmlrpc-c/timeout.hpp | 30 | include/xmlrpc-c/timeout.hpp | |
30 | include/xmlrpc-c/transport.h | 31 | include/xmlrpc-c/transport.h | |
31 | include/xmlrpc-c/util.h | 32 | include/xmlrpc-c/util.h | |
32 | include/xmlrpc-c/xml.hpp | 33 | include/xmlrpc-c/xml.hpp | |
33 | include/xmlrpc.h | 34 | include/xmlrpc.h | |
34 | include/xmlrpc_abyss.h | 35 | include/xmlrpc_abyss.h | |
35 | include/xmlrpc_cgi.h | 36 | include/xmlrpc_cgi.h | |
36 | include/xmlrpc_client.h | 37 | include/xmlrpc_client.h | |
37 | include/xmlrpc_server.h | 38 | include/xmlrpc_server.h | |
38 | include/xmlrpc_server_w32httpsys.h | 39 | include/xmlrpc_server_w32httpsys.h | |
39 | lib/libxmlrpc++.a | 40 | lib/libxmlrpc++.a | |
40 | lib/libxmlrpc++.so | 41 | lib/libxmlrpc++.so | |
41 | lib/libxmlrpc++.so.4 | 42 | lib/libxmlrpc++.so.7 | |
42 | lib/libxmlrpc++.so.4.16 | 43 | lib/libxmlrpc++.so.7.25 | |
43 | lib/libxmlrpc.a | 44 | lib/libxmlrpc.a | |
44 | lib/libxmlrpc.so | 45 | lib/libxmlrpc.so | |
45 | lib/libxmlrpc.so.3 | 46 | lib/libxmlrpc.so.3 | |
46 | lib/libxmlrpc.so.3.16 | 47 | lib/libxmlrpc.so.3.25 | |
47 | lib/libxmlrpc_abyss.a | 48 | lib/libxmlrpc_abyss.a | |
48 | lib/libxmlrpc_abyss.so | 49 | lib/libxmlrpc_abyss.so | |
49 | lib/libxmlrpc_abyss.so.3 | 50 | lib/libxmlrpc_abyss.so.3 | |
50 | lib/libxmlrpc_abyss.so.3.16 | 51 | lib/libxmlrpc_abyss.so.3.25 | |
51 | lib/libxmlrpc_client++.a | 52 | lib/libxmlrpc_client++.a | |
52 | lib/libxmlrpc_client++.so | 53 | lib/libxmlrpc_client++.so | |
53 | lib/libxmlrpc_client++.so.4 | 54 | lib/libxmlrpc_client++.so.7 | |
54 | lib/libxmlrpc_client++.so.4.16 | 55 | lib/libxmlrpc_client++.so.7.25 | |
55 | lib/libxmlrpc_client.a | 56 | lib/libxmlrpc_client.a | |
56 | lib/libxmlrpc_client.so | 57 | lib/libxmlrpc_client.so | |
57 | lib/libxmlrpc_client.so.3 | 58 | lib/libxmlrpc_client.so.3 | |
58 | lib/libxmlrpc_client.so.3.16 | 59 | lib/libxmlrpc_client.so.3.25 | |
59 | lib/libxmlrpc_cpp.a | 60 | lib/libxmlrpc_cpp.a | |
60 | lib/libxmlrpc_cpp.so | 61 | lib/libxmlrpc_cpp.so | |
61 | lib/libxmlrpc_cpp.so.4 | 62 | lib/libxmlrpc_cpp.so.7 | |
62 | lib/libxmlrpc_cpp.so.4.16 | 63 | lib/libxmlrpc_cpp.so.7.25 | |
63 | lib/libxmlrpc_packetsocket.a | 64 | lib/libxmlrpc_packetsocket.a | |
64 | lib/libxmlrpc_packetsocket.so | 65 | lib/libxmlrpc_packetsocket.so | |
65 | lib/libxmlrpc_packetsocket.so.4 | 66 | lib/libxmlrpc_packetsocket.so.7 | |
66 | lib/libxmlrpc_packetsocket.so.4.16 | 67 | lib/libxmlrpc_packetsocket.so.7.25 | |
67 | lib/libxmlrpc_server++.a | 68 | lib/libxmlrpc_server++.a | |
68 | lib/libxmlrpc_server++.so | 69 | lib/libxmlrpc_server++.so | |
69 | lib/libxmlrpc_server++.so.4 | 70 | lib/libxmlrpc_server++.so.7 | |
70 | lib/libxmlrpc_server++.so.4.16 | 71 | lib/libxmlrpc_server++.so.7.25 | |
71 | lib/libxmlrpc_server.a | 72 | lib/libxmlrpc_server.a | |
72 | lib/libxmlrpc_server.so | 73 | lib/libxmlrpc_server.so | |
73 | lib/libxmlrpc_server.so.3 | 74 | lib/libxmlrpc_server.so.3 | |
74 | lib/libxmlrpc_server.so.3.16 | 75 | lib/libxmlrpc_server.so.3.25 | |
75 | lib/libxmlrpc_server_abyss++.a | 76 | lib/libxmlrpc_server_abyss++.a | |
76 | lib/libxmlrpc_server_abyss++.so | 77 | lib/libxmlrpc_server_abyss++.so | |
77 | lib/libxmlrpc_server_abyss++.so.4 | 78 | lib/libxmlrpc_server_abyss++.so.7 | |
78 | lib/libxmlrpc_server_abyss++.so.4.16 | 79 | lib/libxmlrpc_server_abyss++.so.7.25 | |
79 | lib/libxmlrpc_server_abyss.a | 80 | lib/libxmlrpc_server_abyss.a | |
80 | lib/libxmlrpc_server_abyss.so | 81 | lib/libxmlrpc_server_abyss.so | |
81 | lib/libxmlrpc_server_abyss.so.3 | 82 | lib/libxmlrpc_server_abyss.so.3 | |
82 | lib/libxmlrpc_server_abyss.so.3.16 | 83 | lib/libxmlrpc_server_abyss.so.3.25 | |
83 | lib/libxmlrpc_server_cgi++.a | 84 | lib/libxmlrpc_server_cgi++.a | |
84 | lib/libxmlrpc_server_cgi++.so | 85 | lib/libxmlrpc_server_cgi++.so | |
85 | lib/libxmlrpc_server_cgi++.so.4 | 86 | lib/libxmlrpc_server_cgi++.so.7 | |
86 | lib/libxmlrpc_server_cgi++.so.4.16 | 87 | lib/libxmlrpc_server_cgi++.so.7.25 | |
87 | lib/libxmlrpc_server_cgi.a | 88 | lib/libxmlrpc_server_cgi.a | |
88 | lib/libxmlrpc_server_cgi.so | 89 | lib/libxmlrpc_server_cgi.so | |
89 | lib/libxmlrpc_server_cgi.so.3 | 90 | lib/libxmlrpc_server_cgi.so.3 | |
90 | lib/libxmlrpc_server_cgi.so.3.16 | 91 | lib/libxmlrpc_server_cgi.so.3.25 | |
91 | lib/libxmlrpc_server_pstream++.a | 92 | lib/libxmlrpc_server_pstream++.a | |
92 | lib/libxmlrpc_server_pstream++.so | 93 | lib/libxmlrpc_server_pstream++.so | |
93 | lib/libxmlrpc_server_pstream++.so.4 | 94 | lib/libxmlrpc_server_pstream++.so.7 | |
94 | lib/libxmlrpc_server_pstream++.so.4.16 | 95 | lib/libxmlrpc_server_pstream++.so.7.25 | |
95 | lib/libxmlrpc_util.a | 96 | lib/libxmlrpc_util.a | |
96 | lib/libxmlrpc_util.so | 97 | lib/libxmlrpc_util.so | |
97 | lib/libxmlrpc_util.so.3 | 98 | lib/libxmlrpc_util.so.3 | |
98 | lib/libxmlrpc_util.so.3.16 | 99 | lib/libxmlrpc_util.so.3.25 | |
99 | lib/libxmlrpc_xmlparse.a | 100 | lib/libxmlrpc_xmlparse.a | |
100 | lib/libxmlrpc_xmlparse.so | 101 | lib/libxmlrpc_xmlparse.so | |
101 | lib/libxmlrpc_xmlparse.so.3 | 102 | lib/libxmlrpc_xmlparse.so.3 | |
102 | lib/libxmlrpc_xmlparse.so.3.16 | 103 | lib/libxmlrpc_xmlparse.so.3.25 | |
103 | lib/libxmlrpc_xmltok.a | 104 | lib/libxmlrpc_xmltok.a | |
104 | lib/libxmlrpc_xmltok.so | 105 | lib/libxmlrpc_xmltok.so | |
105 | lib/libxmlrpc_xmltok.so.3 | 106 | lib/libxmlrpc_xmltok.so.3 | |
106 | lib/libxmlrpc_xmltok.so.3.16 | 107 | lib/libxmlrpc_xmltok.so.3.25 |
@@ -1,17 +1,12 @@ | @@ -1,17 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.28 2013/01/05 10:37:56 ryoon Exp $ | 1 | $NetBSD: distinfo,v 1.29 2013/09/12 18:52:54 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (xmlrpc-c-1.16.44.tgz) = 181c54ac860698ed7cf4e3814c6f3c6dd46b2ce1 | 3 | SHA1 (xmlrpc-c-1.25.25.tgz) = 10112e9c5328de5ce334c3e7ab7c02cd4ad3f8b2 | |
4 | RMD160 (xmlrpc-c-1.16.44.tgz) = c9293bb74bf6298d6dd6529669f86d4cddd1fcf8 | 4 | RMD160 (xmlrpc-c-1.25.25.tgz) = 9b48b6aa70f04d4f8663515b64feb3186e31dd41 | |
5 | Size (xmlrpc-c-1.16.44.tgz) = 758939 bytes | 5 | Size (xmlrpc-c-1.25.25.tgz) = 779371 bytes | |
6 | SHA1 (patch-GNUmakefile) = 3edcf5ef38c9e94466d0303cb0eb7ce2d5ca39bb | 6 | SHA1 (patch-GNUmakefile) = e4c6b18adaec74257ae174f64ac680aaf63d31a5 | |
7 | SHA1 (patch-aa) = 96ca1b0f8550b04e7292d07b4204b5bed841a417 | 7 | SHA1 (patch-aa) = 96ca1b0f8550b04e7292d07b4204b5bed841a417 | |
8 | SHA1 (patch-ac) = e230eb36f812c85521721ead4d080250e61f670f | |||
9 | SHA1 (patch-ae) = 52f826d292869be44886881c48aa7707a4af2df3 | 8 | SHA1 (patch-ae) = 52f826d292869be44886881c48aa7707a4af2df3 | |
10 | SHA1 (patch-ai) = e7b981f07d4691bbd63bfa80b34b3e1c050c3ad2 | 9 | SHA1 (patch-ai) = 8d7ddc541779129de1e03a3cee81505ffbfb4171 | |
11 | SHA1 (patch-aj) = e3ca062349eb7c50cf3d3dc1370744987a0f3bde | 10 | SHA1 (patch-aj) = e65acd3d49be3486f70cda935a8b2aae3f8af3e8 | |
12 | SHA1 (patch-ak) = 2d0528260b203965e5237f5ca7f9464215283f5c | 11 | SHA1 (patch-ak) = 4525977b51a25f115c1266dccf0e2cc754dc80d3 | |
13 | SHA1 (patch-config.mk.in) = 9b85954b7ef5962ff3750ccd78392e5c7bdbd592 | 12 | SHA1 (patch-config.mk.in) = ddb63b60b40fb739700e3808336199f848c25904 | |
14 | SHA1 (patch-examples_cpp_Makefile) = 3c2ca9b50a587c6a6395aec292ca643605158171 | |||
15 | SHA1 (patch-lib_curl__transport_curlmulti.c) = 1cea4c43b1ed3dcf73827afc14d7bb9267371121 | |||
16 | SHA1 (patch-lib_curl__transport_curltransaction.c) = 1dcf46c0dd1dd8e7fdfbb6c81e00b326f6d0b1f9 | |||
17 | SHA1 (patch-lib_curl__transport_xmlrpc__curl__transport.c) = ea132ebb46ff0ce9893d64e9c9205d5a155220ef |
@@ -1,14 +1,24 @@ | @@ -1,14 +1,24 @@ | |||
1 | $NetBSD: patch-GNUmakefile,v 1.1 2011/11/22 19:17:19 yyamano Exp $ | 1 | $NetBSD: patch-GNUmakefile,v 1.2 2013/09/12 18:52:54 adam Exp $ | |
2 | 2 | |||
3 | Make this build with symlinked pkgsrc directory. | 3 | Make this build with symlinked pkgsrc directory. | |
4 | Don't build examples: they are not installed, and give error with libc++. | |||
4 | 5 | |||
5 | --- GNUmakefile.orig 2011-03-25 16:27:18.000000000 +0000 | 6 | --- GNUmakefile.orig 2011-03-25 16:27:18.000000000 +0000 | |
6 | +++ GNUmakefile | 7 | +++ GNUmakefile | |
7 | @@ -1,6 +1,6 @@ | 8 | @@ -1,6 +1,6 @@ | |
8 | include srcdir.mk | 9 | include srcdir.mk | |
9 | 10 | |||
10 | -BLDDIR = $(CURDIR) | 11 | -BLDDIR = $(CURDIR) | |
11 | +BLDDIR = $(shell pwd) | 12 | +BLDDIR = $(shell pwd) | |
12 | SUBDIR = | 13 | SUBDIR = | |
13 | 14 | |||
14 | export SRCDIR | 15 | export SRCDIR | |
16 | @@ -8,7 +8,7 @@ export BLDDIR | |||
17 | ||||
18 | include $(BLDDIR)/config.mk | |||
19 | ||||
20 | -SUBDIRS = include lib src tools examples | |||
21 | +SUBDIRS = include lib src tools | |||
22 | ||||
23 | # The reason we don't build tools and examples by default is that they | |||
24 | # contain executables, which require significantly more from the |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: patch-ai,v 1.2 2011/04/06 07:45:48 adam Exp $ | 1 | $NetBSD: patch-ai,v 1.3 2013/09/12 18:52:54 adam Exp $ | |
2 | 2 | |||
3 | --- tools/xmlrpc/Makefile.orig 2011-03-25 16:58:35.000000000 +0000 | 3 | --- tools/xmlrpc/Makefile.orig 2013-03-29 06:38:36.000000000 +0000 | |
4 | +++ tools/xmlrpc/Makefile | 4 | +++ tools/xmlrpc/Makefile | |
5 | @@ -45,7 +45,7 @@ LIBS = $(LIBXMLRPC_CLIENT) $(LIBXMLRPC) | 5 | @@ -43,7 +43,7 @@ LIBS = $(LIBXMLRPC_CLIENT) $(LIBXMLRPC) | |
6 | XMLRPC_OBJS = xmlrpc.o $(DUMPVALUE) | 6 | XMLRPC_OBJS = xmlrpc.o $(DUMPVALUE) | |
7 | 7 | |||
8 | xmlrpc: $(XMLRPC_OBJS) $(LIBS) $(UTILS) | 8 | xmlrpc: $(XMLRPC_OBJS) $(LIBS) $(UTILS) | |
9 | - $(CCLD) -o $@ $(LDFLAGS) $(XMLRPC_OBJS) $(UTILS) $(CLIENT_LDLIBS) | 9 | - $(CCLD) -o $@ $(LDFLAGS) $(XMLRPC_OBJS) $(UTILS) $(CLIENT_LDLIBS) | |
10 | + libtool --mode=link $(CCLD) -o $@ $(LDFLAGS) $(XMLRPC_OBJS) $(UTILS) $(CLIENT_LDLIBS) | 10 | + libtool --mode=link $(CCLD) -o $@ $(LDFLAGS) $(XMLRPC_OBJS) $(UTILS) $(CLIENT_LDLIBS) | |
11 | 11 | |||
12 | %.o:%.c $(BLDDIR)/include/xmlrpc-c/config.h | 12 | %.o:%.c $(BLDDIR)/include/xmlrpc-c/config.h | |
13 | $(CC) -c $(CFLAGS) $< | 13 | $(CC) -c $(CFLAGS_ALL) $< |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: patch-aj,v 1.2 2011/04/06 07:45:48 adam Exp $ | 1 | $NetBSD: patch-aj,v 1.3 2013/09/12 18:52:54 adam Exp $ | |
2 | 2 | |||
3 | --- tools/xmlrpc_transport/Makefile.orig 2011-03-25 16:58:35.000000000 +0000 | 3 | --- tools/xmlrpc_transport/Makefile.orig 2013-03-29 06:38:36.000000000 +0000 | |
4 | +++ tools/xmlrpc_transport/Makefile | 4 | +++ tools/xmlrpc_transport/Makefile | |
5 | @@ -45,7 +45,7 @@ UTILS = $(UTIL_OBJS:%=$(UTIL_DIR)/%) | 5 | @@ -36,7 +36,7 @@ UTILS = $(UTIL_OBJS:%=$(UTIL_DIR)/%) | |
6 | LIBS = $(LIBXMLRPC_CLIENT) $(LIBXMLRPC) $(LIBXMLRPC_XML) $(LIBXMLRPC_UTIL) | 6 | LIBS = $(LIBXMLRPC_CLIENT) $(LIBXMLRPC) $(LIBXMLRPC_XML) $(LIBXMLRPC_UTIL) | |
7 | 7 | |||
8 | xmlrpc_transport:%:%.o $(LIBS) $(UTILS) | 8 | xmlrpc_transport:%:%.o $(LIBS) $(UTILS) | |
9 | - $(CCLD) -o $@ $(LDFLAGS) $< $(CLIENT_LDLIBS) $(UTILS) | 9 | - $(CCLD) -o $@ $(LDFLAGS) $< $(CLIENT_LDLIBS) $(UTILS) | |
10 | + libtool --mode=link $(CCLD) -o $@ $(LDFLAGS) $< $(CLIENT_LDLIBS) $(UTILS) | 10 | + libtool --mode=link $(CCLD) -o $@ $(LDFLAGS) $< $(CLIENT_LDLIBS) $(UTILS) | |
11 | 11 | |||
12 | %.o:%.c | 12 | %.o:%.c | |
13 | $(CC) -c $(CFLAGS) $< | 13 | $(CC) -c $(CFLAGS_ALL) $< |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: patch-ak,v 1.2 2011/04/06 07:45:48 adam Exp $ | 1 | $NetBSD: patch-ak,v 1.3 2013/09/12 18:52:54 adam Exp $ | |
2 | 2 | |||
3 | --- tools/xml-rpc-api2cpp/Makefile.orig 2011-03-25 16:58:35.000000000 +0000 | 3 | --- tools/xml-rpc-api2cpp/Makefile.orig 2013-03-29 06:38:36.000000000 +0000 | |
4 | +++ tools/xml-rpc-api2cpp/Makefile | 4 | +++ tools/xml-rpc-api2cpp/Makefile | |
5 | @@ -44,7 +44,7 @@ xml-rpc-api2cpp: \ | 5 | @@ -44,7 +44,7 @@ xml-rpc-api2cpp: \ | |
6 | $(LIBXMLRPC) \ | 6 | $(LIBXMLRPC) \ | |
7 | $(LIBXMLRPC_XML) \ | 7 | $(LIBXMLRPC_XML) \ | |
8 | $(LIBXMLRPC_UTIL) | 8 | $(LIBXMLRPC_UTIL) | |
9 | - $(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS) | 9 | - $(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS) | |
10 | + libtool --mode=link $(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS) | 10 | + libtool --mode=link $(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS) | |
11 | 11 | |||
12 | %.o:%.cpp | 12 | %.o:%.cpp | |
13 | $(CXX) -c $(CXXFLAGS) $< | 13 | $(CXX) -c $(CXXFLAGS_ALL) $< |
@@ -1,41 +1,41 @@ | @@ -1,41 +1,41 @@ | |||
1 | $NetBSD: patch-config.mk.in,v 1.2 2013/01/05 10:37:56 ryoon Exp $ | 1 | $NetBSD: patch-config.mk.in,v 1.3 2013/09/12 18:52:54 adam Exp $ | |
2 | 2 | |||
3 | Do not use -Bdynamic -G when using GCC on Solaris, it creates non-PIC | 3 | Do not use -Bdynamic -G when using GCC on Solaris, it creates non-PIC | |
4 | libraries. | 4 | libraries. | |
5 | 5 | |||
6 | --- config.mk.in.orig 2011-03-25 16:58:35.000000000 +0000 | 6 | --- config.mk.in.orig 2013-03-29 06:38:36.000000000 +0000 | |
7 | +++ config.mk.in | 7 | +++ config.mk.in | |
8 | @@ -187,10 +187,15 @@ ifeq ($(patsubst solaris%,solaris,$(HOST | 8 | @@ -193,10 +193,15 @@ ifeq ($(patsubst solaris%,solaris,$(HOST | |
9 | SHLIB_SUFFIX = so | 9 | # linker, it's even more complicated: we need an rpath option of the | |
10 | shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ).$(MIN)) | 10 | # form -Wl,-R . | |
11 | shliblefn = $(1:%=%.$(SHLIB_SUFFIX)) | 11 | ||
12 | - # Solaris compiler (Sun C 5.5) can't take multiple ld options as | 12 | - # Solaris compiler (Sun C 5.5) can't take multiple ld options as | |
13 | - # -Wl,-a,-b . Ld sees -a,-b in that case. | 13 | - # -Wl,-a,-b . Ld sees -a,-b in that case. | |
14 | - LDFLAGS_SHLIB = -Wl,-Bdynamic -Wl,-G -Wl,-h -Wl,$(SONAME) | 14 | - LDFLAGS_SHLIB = -Wl,-Bdynamic -Wl,-G -Wl,-h -Wl,$(SONAME) | |
15 | - CFLAGS_SHLIB = -Kpic | 15 | - CFLAGS_SHLIB = -Kpic | |
16 | + ifeq ($(C_COMPILER_GNU),yes) | 16 | + ifeq ($(C_COMPILER_GNU),yes) | |
17 | + LDFLAGS_SHLIB = -shared -Wl,-h -Wl,$(SONAME) | 17 | + LDFLAGS_SHLIB = -shared -Wl,-h -Wl,$(SONAME) | |
18 | + CFLAGS_SHLIB = -fPIC | 18 | + CFLAGS_SHLIB = -fPIC | |
19 | + else | 19 | + else | |
20 | + # Solaris compiler (Sun C 5.5) can't take multiple ld options as | 20 | + # Solaris compiler (Sun C 5.5) can't take multiple ld options as | |
21 | + # -Wl,-a,-b . Ld sees -a,-b in that case. | 21 | + # -Wl,-a,-b . Ld sees -a,-b in that case. | |
22 | + LDFLAGS_SHLIB = -Wl,-Bdynamic -Wl,-G -Wl,-h -Wl,$(SONAME) | 22 | + LDFLAGS_SHLIB = -Wl,-Bdynamic -Wl,-G -Wl,-h -Wl,$(SONAME) | |
23 | + CFLAGS_SHLIB = -Kpic | 23 | + CFLAGS_SHLIB = -Kpic | |
24 | + endif | 24 | + endif | |
25 | NEED_RPATH=yes | |||
25 | endif | 26 | endif | |
26 | 27 | |||
27 | ifeq ($(patsubst aix%,aix,$(HOST_OS)),aix) | 28 | @@ -242,6 +247,18 @@ ifeq ($(patsubst netbsd%,netbsd,$(HOST_O | |
28 | @@ -235,6 +240,18 @@ ifeq ($(patsubst netbsd%,netbsd,$(HOST_O | |||
29 | NEED_WL_RPATH=yes | 29 | NEED_WL_RPATH=yes | |
30 | endif | 30 | endif | |
31 | 31 | |||
32 | +ifeq ($(patsubst openbsd%,openbsd,$(HOST_OS)),openbsd) | 32 | +ifeq ($(patsubst openbsd%,openbsd,$(HOST_OS)),openbsd) | |
33 | + SHARED_LIB_TYPE = unix | 33 | + SHARED_LIB_TYPE = unix | |
34 | + SHLIB_SUFFIX = so | 34 | + SHLIB_SUFFIX = so | |
35 | + MUST_BUILD_SHLIB = Y | 35 | + MUST_BUILD_SHLIB = Y | |
36 | + MUST_BUILD_SHLIBLE = Y | 36 | + MUST_BUILD_SHLIBLE = Y | |
37 | + shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ).$(MIN)) | 37 | + shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ).$(MIN)) | |
38 | + shliblefn = $(1:%=%.$(SHLIB_SUFFIX)) | 38 | + shliblefn = $(1:%=%.$(SHLIB_SUFFIX)) | |
39 | + CFLAGS_SHLIB = -fpic | 39 | + CFLAGS_SHLIB = -fpic | |
40 | + LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB) | 40 | + LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB) | |
41 | + NEED_WL_RPATH=yes | 41 | + NEED_WL_RPATH=yes |