summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-10-09 15:26:45 +0000
committermarino <marino@pkgsrc.org>2012-10-09 15:26:45 +0000
commite8b111280b6f1193bbbea4012682e621096d46ba (patch)
treed426a8694d8d0a6f6785c6c52e924457862f2f9d
parent47f4298a3fcb7465ed930b75b7de733bbb802894 (diff)
downloadpkgsrc-e8b111280b6f1193bbbea4012682e621096d46ba.tar.gz
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+.
-rw-r--r--geography/geoclue/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/geography/geoclue/Makefile b/geography/geoclue/Makefile
index df0daf17086..33b9bf3ed15 100644
--- a/geography/geoclue/Makefile
+++ b/geography/geoclue/Makefile
@@ -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 @@ USE_TOOLS+= pkg-config gmake
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