From 542fffc4a15b016db683f5404b635034505f26cf Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 12 Sep 2009 22:07:56 +0000 Subject: Fix build under Mac OS X Snow Leopard. --- net/mtr/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'net/mtr') diff --git a/net/mtr/Makefile b/net/mtr/Makefile index 375dadfb264..4d626d0fd68 100644 --- a/net/mtr/Makefile +++ b/net/mtr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.55 2009/08/26 19:58:45 sno Exp $ +# $NetBSD: Makefile,v 1.56 2009/09/12 22:07:56 tron Exp $ DISTNAME= mtr-0.75 CATEGORIES= net @@ -31,6 +31,10 @@ SPECIAL_PERMS= sbin/mtr ${SETUID_ROOT_PERMS} BUILDLINK_TRANSFORM+= rm:-Wno-pointer-sign .endif +.if !empty(MACHINE_PLATFORM:MDarwin-??.*-*) +LIBS+= -lresolv +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mtr ${DESTDIR}${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/mtr.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 -- cgit v1.2.3