pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/mtr Remove "-Wno-pointer-sign" compiler options if...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fec859a583e2
branches:  trunk
changeset: 546346:fec859a583e2
user:      tron <tron%pkgsrc.org@localhost>
date:      Thu Aug 28 20:05:24 2008 +0000

description:
Remove "-Wno-pointer-sign" compiler options if we are building with
GCC 3.x. This should fix PR pkg/39421.

diffstat:

 net/mtr/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 701df2636e04 -r fec859a583e2 net/mtr/Makefile
--- a/net/mtr/Makefile  Thu Aug 28 16:48:46 2008 +0000
+++ b/net/mtr/Makefile  Thu Aug 28 20:05:24 2008 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index