summaryrefslogtreecommitdiff
path: root/net/mtr
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2008-08-28 20:05:24 +0000
committertron <tron@pkgsrc.org>2008-08-28 20:05:24 +0000
commit550fbee32b005b1bdc0bac307537c0f90605dfb8 (patch)
treeb931473eb127a0f9ec510fa69d1b84e1b8b28afa /net/mtr
parent831b14dceb8e333e9ca6d0f41dae751603fafb2c (diff)
downloadpkgsrc-550fbee32b005b1bdc0bac307537c0f90605dfb8.tar.gz
Remove "-Wno-pointer-sign" compiler options if we are building with
GCC 3.x. This should fix PR pkg/39421.
Diffstat (limited to 'net/mtr')
-rw-r--r--net/mtr/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile
index 190693baa52..2377282a157 100644
--- a/net/mtr/Makefile
+++ b/net/mtr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2008/08/24 12:36:34 tron Exp $
+# $NetBSD: Makefile,v 1.52 2008/08/28 20:05:24 tron Exp $
DISTNAME= mtr-0.74
CATEGORIES= net
@@ -24,6 +24,12 @@ BUILDLINK_TRANSFORM+= l:termcap:ncurses
SPECIAL_PERMS= sbin/mtr ${SETUID_ROOT_PERMS}
+# Remove hard-coded compiler option that GCC 3.x doesn't support.
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mgcc-3.*)
+BUILDLINK_TRANSFORM+= rm:-Wno-pointer-sign
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mtr ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/mtr.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8