pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/geography/geoclue geography/geoclue: Fix build for gcc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f0dc350f3203
branches:  trunk
changeset: 609757:f0dc350f3203
user:      marino <marino%pkgsrc.org@localhost>
date:      Tue Oct 09 15:26:45 2012 +0000

description:
geography/geoclue: Fix build for gcc4.6+

geoclue uses -Werror, but gcc4.6+ has a new warning,
unused-but-set-variable which will break the build.  Add a CFLAG to
inhibit the warning to fix build on gcc4.6+.

diffstat:

 geography/geoclue/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 640cf695f9cf -r f0dc350f3203 geography/geoclue/Makefile
--- a/geography/geoclue/Makefile        Tue Oct 09 14:21:08 2012 +0000
+++ b/geography/geoclue/Makefile        Tue Oct 09 15:26:45 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2012/10/08 23:01:38 adam Exp $
+# $NetBSD: Makefile,v 1.16 2012/10/09 15:26:45 marino Exp $
 #
 
 DISTNAME=      geoclue-0.12.0
@@ -17,6 +17,9 @@
 
 PKGCONFIG_OVERRIDE+=   geoclue.pc.in
 
+# Needed to pass -Werror for GCC 4.6+
+CFLAGS+=       -Wno-unused-but-set-variable
+
 # for documentation build
 BUILD_DEPENDS+=        libxslt-[0-9]*:../../textproc/libxslt
 



Home | Main Index | Thread Index | Old Index