Merge from vendor branch TNF:
[pkgsrcv2.git] / net / arpd / hacks.mk
1 # $NetBSD: hacks.mk,v 1.2 2006/06/30 15:33:39 tron Exp $
2
3 # GCC 4.1.x complains about a NULL argument to memcpy() because it gets
4 # confused by the definition of the ar_tha() macro under NetBSD.
5 .include "../../mk/compiler.mk"
6
7 .if ${OPSYS} == "NetBSD" && !empty(CC_VERSION:Mgcc-4.1.*)
8 PKG_HACKS+=             gcc41-null-warning
9
10 SUBST_CLASSES+=         gcc41
11 SUBST_STAGE.gcc41=      post-configure
12 SUBST_FILES.gcc41=      Makefile
13 SUBST_SED.gcc41=        -e "s/-Wall/-Wall -Wno-nonnull/"
14 .endif