pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cross/mingw-binutils cross/mingw-binutils: Fix build o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/802b42bfb46f
branches:  trunk
changeset: 609746:802b42bfb46f
user:      marino <marino%pkgsrc.org@localhost>
date:      Tue Oct 09 07:48:20 2012 +0000

description:
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.

diffstat:

 cross/mingw-binutils/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 85132d3afe7f -r 802b42bfb46f cross/mingw-binutils/Makefile
--- a/cross/mingw-binutils/Makefile     Tue Oct 09 07:36:08 2012 +0000
+++ b/cross/mingw-binutils/Makefile     Tue Oct 09 07:48:20 2012 +0000
@@ -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_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} \



Home | Main Index | Thread Index | Old Index