summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron>2006-06-30 15:33:39 +0000
committertron <tron>2006-06-30 15:33:39 +0000
commit98726d33fa1214ae46347856af03c7c7aa3f44bc (patch)
treeaf71031a8d8822cd7eaf7404db3c05707dad1cc7 /net
parent00f1d08e881774506f8268bbb1d806fd09de87ab (diff)
downloadpkgsrc-98726d33fa1214ae46347856af03c7c7aa3f44bc.tar.gz
Just turn off "nonnull" warning instead of all warnings.
Diffstat (limited to 'net')
-rw-r--r--net/arpd/hacks.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/arpd/hacks.mk b/net/arpd/hacks.mk
index 3178f40ea51..c16a6dedf98 100644
--- a/net/arpd/hacks.mk
+++ b/net/arpd/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2006/06/30 15:13:51 tron Exp $
+# $NetBSD: hacks.mk,v 1.2 2006/06/30 15:33:39 tron Exp $
# GCC 4.1.x complains about a NULL argument to memcpy() because it gets
# confused by the definition of the ar_tha() macro under NetBSD.
@@ -6,5 +6,9 @@
.if ${OPSYS} == "NetBSD" && !empty(CC_VERSION:Mgcc-4.1.*)
PKG_HACKS+= gcc41-null-warning
-BUILDLINK_TRANSFORM+= rm:-Wall
+
+SUBST_CLASSES+= gcc41
+SUBST_STAGE.gcc41= post-configure
+SUBST_FILES.gcc41= Makefile
+SUBST_SED.gcc41= -e "s/-Wall/-Wall -Wno-nonnull/"
.endif