summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2006-06-30 15:13:51 +0000
committertron <tron@pkgsrc.org>2006-06-30 15:13:51 +0000
commit80972bd47e1fe139eeea9a4a73a53f6308c32bdc (patch)
treea7bedf9c8f4bb7eea49c581d10d5d812e7b7bcb3
parentef2c50db00b619321cdcbe9030b008b8c77d52a1 (diff)
downloadpkgsrc-80972bd47e1fe139eeea9a4a73a53f6308c32bdc.tar.gz
Remove "-Wall" option when compiling with GCC 4.1.x under NetBSD.
It gets confused by the definition of the ar_tha() macro.
-rw-r--r--net/arpd/hacks.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/arpd/hacks.mk b/net/arpd/hacks.mk
new file mode 100644
index 00000000000..3178f40ea51
--- /dev/null
+++ b/net/arpd/hacks.mk
@@ -0,0 +1,10 @@
+# $NetBSD: hacks.mk,v 1.1 2006/06/30 15:13:51 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.
+.include "../../mk/compiler.mk"
+
+.if ${OPSYS} == "NetBSD" && !empty(CC_VERSION:Mgcc-4.1.*)
+PKG_HACKS+= gcc41-null-warning
+BUILDLINK_TRANSFORM+= rm:-Wall
+.endif