1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Fix build on arm

Thanks to kevlo for testing on arm architecture.

PR:		ports/183212
Submitted by:	Matthieu Volat <mazhe@alkumuna.eu>
Tested by:	kevlo
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-11-11 14:16:47 +00:00
parent 48f025ce29
commit af40bb348e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333507

View File

@ -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>