aboutsummaryrefslogtreecommitdiff
path: root/net/mDNSResponder/Makefile
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-11 14:16:47 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-11 14:16:47 +0000
commitaf40bb348e577d865e0a92e50a202641e0058f22 (patch)
tree354aea24d1b2a834210052e1825a935d3d0d9daa /net/mDNSResponder/Makefile
parent48f025ce293f9a262a9e09b419a2ad5af4772444 (diff)
downloadports-af40bb348e577d865e0a92e50a202641e0058f22.tar.gz
ports-af40bb348e577d865e0a92e50a202641e0058f22.zip
Notes
Diffstat (limited to 'net/mDNSResponder/Makefile')
-rw-r--r--net/mDNSResponder/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/mDNSResponder/Makefile b/net/mDNSResponder/Makefile
index 51d125639d73..3781e77be41f 100644
--- a/net/mDNSResponder/Makefile
+++ b/net/mDNSResponder/Makefile
@@ -26,6 +26,12 @@ EXTRA_MAN1= dns-sd.1
EXTRA_MAN8= dnsextd.8 mDNSResponderPosix.8
EXTRA_SBIN= dnsextd
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "arm"
+MAKE_ARGS+= LD="${CC} -shared"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/ cc / s|cc|$${CC}|' ${WRKSRC}/Clients/Makefile
@${REINPLACE_CMD} -e 's|-lpthread|-pthread|g; s|mDNSResponder.8|mDNSResponderPosix.8|g' ${WRKSRC}/mDNSPosix/Makefile
@@ -41,4 +47,4 @@ post-install:
cd ${WRKSRC}/mDNSShared/ && ${INSTALL_MAN} ${EXTRA_MAN8} ${STAGEDIR}${PREFIX}/man/man8/
cd ${WRKSRC}/mDNSPosix/build/prod/ && ${INSTALL_PROGRAM} ${EXTRA_SBIN} ${STAGEDIR}${PREFIX}/sbin/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>