summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-05-01 04:54:03 +0000
committerobache <obache@pkgsrc.org>2012-05-01 04:54:03 +0000
commit8408ef82a8eaf6cca4494a17a3b8b348b490219c (patch)
treeac224525fbdf4fc88af79eb85b4dc0d7ef261d08 /net
parentca06fcb5d6a22c844db29c580aba0a096e681b8b (diff)
downloadpkgsrc-8408ef82a8eaf6cca4494a17a3b8b348b490219c.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"