Tue Oct 9 17:32:33 2012 UTC ()
cross/mingw-binutils: Alternative fix for gcc47

Although the claim that using the -Wno-unused-but-set-variable flag
breaks the build for older GCCs is unsubstantiated at this time, the
previous fix for gcc47 is removed in favor of deleting -Werror which
is exactly what the cross/binutils makefile does.


(marino)
diff -r1.4 -r1.5 pkgsrc/cross/mingw-binutils/Makefile

cvs diff -r1.4 -r1.5 pkgsrc/cross/mingw-binutils/Makefile (expand / switch to unified diff)

--- pkgsrc/cross/mingw-binutils/Makefile 2012/10/09 07:48:20 1.4
+++ pkgsrc/cross/mingw-binutils/Makefile 2012/10/09 17:32:33 1.5
@@ -1,32 +1,31 @@ @@ -1,32 +1,31 @@
1# $NetBSD: Makefile,v 1.4 2012/10/09 07:48:20 marino Exp $ 1# $NetBSD: Makefile,v 1.5 2012/10/09 17:32:33 marino Exp $
2 2
3DISTNAME= binutils-2.18 3DISTNAME= binutils-2.18
4PKGNAME= mingw-${DISTNAME:S/-src//} 4PKGNAME= mingw-${DISTNAME:S/-src//}
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= cross 6CATEGORIES= cross
7MASTER_SITES= ${MASTER_SITE_GNU:=binutils/} 7MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
8EXTRACT_SUFX= .tar.bz2 8EXTRACT_SUFX= .tar.bz2
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://mingw.sourceforge.net/ 11HOMEPAGE= http://mingw.sourceforge.net/
12COMMENT= GNU binutils for win32 cross-development 12COMMENT= GNU binutils for win32 cross-development
13 13
14USE_PKGLOCALEDIR= yes 14USE_PKGLOCALEDIR= yes
15GNU_CONFIGURE= yes 15GNU_CONFIGURE= yes
16USE_CROSSBASE= yes 16USE_CROSSBASE= yes
17USE_TOOLS+= pax 17USE_TOOLS+= pax
18INFO_FILES= yes 18INFO_FILES= yes
19 19
20# Required to pass -Werror on gcc4.7 20BUILDLINK_TRANSFORM+= rm:-Werror
21CFLAGS+= -Wno-unused-but-set-variable 
22 21
23post-install: 22post-install:
24.for f in windres dllwrap 23.for f in windres dllwrap
25 ${LN} -fs ${PREFIX}/bin/${MINGW_TARGET}-${f} \ 24 ${LN} -fs ${PREFIX}/bin/${MINGW_TARGET}-${f} \
26 ${DESTDIR}${PREFIX}/${MINGW_TARGET}/bin/${f} 25 ${DESTDIR}${PREFIX}/${MINGW_TARGET}/bin/${f}
27.endfor 26.endfor
28 27
29.include "../../cross/mingw/Makefile.common" 28.include "../../cross/mingw/Makefile.common"
30.include "../../cross/mingw-w32api-bin/buildlink3.mk" 29.include "../../cross/mingw-w32api-bin/buildlink3.mk"
31.include "../../cross/mingw-runtime-bin/buildlink3.mk" 30.include "../../cross/mingw-runtime-bin/buildlink3.mk"
32.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"