pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/libsoup24 disable-more-warnings for gcc<4.2, or gc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0cb8431aa469
branches:  trunk
changeset: 603230:0cb8431aa469
user:      obache <obache%pkgsrc.org@localhost>
date:      Tue May 01 05:35:04 2012 +0000

description:
disable-more-warnings for gcc<4.2, or gcc>=4.2 specific -Werr=XXX flags will be
used unconditionally and result in build failure.

diffstat:

 net/libsoup24/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 6a8c41a59123 -r 0cb8431aa469 net/libsoup24/Makefile
--- a/net/libsoup24/Makefile    Tue May 01 04:54:03 2012 +0000
+++ b/net/libsoup24/Makefile    Tue May 01 05:35:04 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2012/04/30 14:22:36 drochner Exp $
+# $NetBSD: Makefile,v 1.41 2012/05/01 05:35:04 obache Exp $
 
 DISTNAME=      libsoup-2.38.1
 PKGNAME=       ${DISTNAME:S/libsoup/libsoup24/}
@@ -25,6 +25,12 @@
 
 .include "options.mk"
 
+# 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
+
 .include "../../databases/sqlite3/buildlink3.mk"
 BUILDLINK_API_DEPENDS.glib2+=  glib2>=2.30.0
 .include "../../devel/glib2/buildlink3.mk"



Home | Main Index | Thread Index | Old Index