From 9ab87d737885fdc72b79f0566b7b1f48b9068827 Mon Sep 17 00:00:00 2001 From: marino Date: Tue, 9 Oct 2012 07:48:20 +0000 Subject: cross/mingw-binutils: Fix build on gcc4.7 mingw-binutils is built with -Werror which fails on the gcc4.6+ warning "unused but set variable". Disable that warning to fix gcc4.7 build. --- cross/mingw-binutils/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cross') diff --git a/cross/mingw-binutils/Makefile b/cross/mingw-binutils/Makefile index fdcdbcd0a4d..2b87b413b2b 100644 --- a/cross/mingw-binutils/Makefile +++ b/cross/mingw-binutils/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2012/10/03 00:10:30 asau Exp $ +# $NetBSD: Makefile,v 1.4 2012/10/09 07:48:20 marino Exp $ DISTNAME= binutils-2.18 PKGNAME= mingw-${DISTNAME:S/-src//} @@ -17,6 +17,9 @@ USE_CROSSBASE= yes USE_TOOLS+= pax INFO_FILES= yes +# Required to pass -Werror on gcc4.7 +CFLAGS+= -Wno-unused-but-set-variable + post-install: .for f in windres dllwrap ${LN} -fs ${PREFIX}/bin/${MINGW_TARGET}-${f} \ -- cgit v1.2.3