diff options
Diffstat (limited to 'net/mDNSResponder/Makefile')
-rw-r--r-- | net/mDNSResponder/Makefile | 8 |
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> |