diff options
author | tron <tron@pkgsrc.org> | 2008-08-28 20:05:24 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2008-08-28 20:05:24 +0000 |
commit | 9b197f5b52c593f357c3a1e31a1379a1e664fc6b (patch) | |
tree | b931473eb127a0f9ec510fa69d1b84e1b8b28afa /net/mtr | |
parent | a0540289c0dd56b0e437a7dc2d1577bed4e06c8d (diff) | |
download | pkgsrc-9b197f5b52c593f357c3a1e31a1379a1e664fc6b.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/Makefile | 8 |
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 |