From 1402866595d54be21ff422563d29ad7ddafa87a2 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 30 Jun 2006 15:13:51 +0000 Subject: Remove "-Wall" option when compiling with GCC 4.1.x under NetBSD. It gets confused by the definition of the ar_tha() macro. --- net/arpd/hacks.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 net/arpd/hacks.mk (limited to 'net/arpd') 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 -- cgit v1.2.3