601583c320
Patch provided by Sergey Svishchev in private mail.
14 lines
460 B
Makefile
14 lines
460 B
Makefile
# $NetBSD: hacks.mk,v 1.3 2007/02/22 19:26:52 wiz 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
|
|
|
|
SUBST_CLASSES+= gcc41
|
|
SUBST_STAGE.gcc41= post-configure
|
|
SUBST_FILES.gcc41= Makefile
|
|
SUBST_SED.gcc41= -e "s/-Wall/-Wall -Wno-nonnull/"
|
|
.endif
|