svn commit: r333507 - head/net/mDNSResponder
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Mon Nov 11 14:16:47 UTC 2013
Author: sunpoet
Date: Mon Nov 11 14:16:47 2013
New Revision: 333507
URL: http://svnweb.freebsd.org/changeset/ports/333507
Log:
- Fix build on arm
Thanks to kevlo for testing on arm architecture.
PR: ports/183212
Submitted by: Matthieu Volat <mazhe at alkumuna.eu>
Tested by: kevlo
Modified:
head/net/mDNSResponder/Makefile
Modified: head/net/mDNSResponder/Makefile
==============================================================================
--- head/net/mDNSResponder/Makefile Mon Nov 11 14:16:05 2013 (r333506)
+++ head/net/mDNSResponder/Makefile Mon Nov 11 14:16:47 2013 (r333507)
@@ -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>
More information about the svn-ports-head
mailing list