summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorobache <obache>2012-05-01 04:54:03 +0000
committerobache <obache>2012-05-01 04:54:03 +0000
commitf43eee3d3b560875063d5475a6113c344200e7a5 (patch)
treeac224525fbdf4fc88af79eb85b4dc0d7ef261d08 /net
parentb0578cdf08cea0f60f4ffc86307d5025fbbcdcc4 (diff)
downloadpkgsrc-f43eee3d3b560875063d5475a6113c344200e7a5.tar.gz
disable-more-warnings for gcc<4.2, or gcc>=4.2 specific -Werr=XXX flags will be
used uncoditionally and result in build failure.
Diffstat (limited to 'net')
-rw-r--r--net/glib-networking/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/glib-networking/Makefile b/net/glib-networking/Makefile
index 5f5ae114e6b..286a115779c 100644
--- a/net/glib-networking/Makefile
+++ b/net/glib-networking/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2012/04/30 14:21:03 drochner Exp $
+# $NetBSD: Makefile,v 1.12 2012/05/01 04:54:03 obache Exp $
#
DISTNAME= glib-networking-2.32.1
@@ -18,6 +18,12 @@ CONFIGURE_ARGS+= --with-ca-certificates=/etc/ssl/certs/ca-certificates.crt
USE_LIBTOOL= yes
USE_TOOLS+= intltool pkg-config gmake gettext
+# gcc>=4.2 specific -Werror=XXX flags will be added unconditionally.
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mgcc-4.[01].*) || !empty(CC_VERSION:Mgcc-[1-3].*)
+CONFIGURE_ARGS+= --disable-more-warnings
+.endif
+
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.32.1
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/glib2/modules.mk"