summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-08-31 14:48:04 +0000
committerjoerg <joerg@pkgsrc.org>2011-08-31 14:48:04 +0000
commite3d2c5ff9a0dc924f62e67752b176f89c95858d9 (patch)
treee8c7e1fae9a225672d07486d6e0fe59e0c8037eb /lang
parentaba60ab26393e9b2bf4d6a3337aeb1f366855245 (diff)
downloadpkgsrc-e3d2c5ff9a0dc924f62e67752b176f89c95858d9.tar.gz
Disable a bunch of default warnings for clang. Still doesn't finish
build, since the bootstrap VM crashes with Stack Overflow error.
Diffstat (limited to 'lang')
-rw-r--r--lang/openjdk7/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/openjdk7/Makefile b/lang/openjdk7/Makefile
index 18ab3db7ede..3267aa86daa 100644
--- a/lang/openjdk7/Makefile
+++ b/lang/openjdk7/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2011/08/21 22:57:54 tnn Exp $
+# $NetBSD: Makefile,v 1.23 2011/08/31 14:48:04 joerg Exp $
DISTNAME= openjdk-7-fcs-src-b147-27_jun_2011
PKGNAME= openjdk7-1.7.0.147.20110811
@@ -72,6 +72,15 @@ BUILDDIR= ${WRKSRC}/build/${OPSYS:C/.*BSD/bsd/:S/DragonFly/bsd/}-${MACHINE_ARCH:
PLIST_SUBST+= ARCH=${MACHINE_ARCH:S/x86_64/amd64/}
PLIST_SUBST+= LOWER_OPSYS=${LOWER_OPSYS}
+.if !empty(PKGSRC_COMPILER:Mclang)
+_WRAP_EXTRA_ARGS.CXX+= -Wno-parentheses -Wno-sign-conversion \
+ -Wno-shorten-64-to-32 -Wno-conversion \
+ -Wno-unused-value -Wno-switch-enum \
+ -Wno-tautological-compare \
+ -Wno-delete-non-virtual-dtor \
+ -Wno-return-type -Wno-unused-parameter
+.endif
+
.include "../../mk/bsd.prefs.mk"
.include "bootstrap.mk"
.include "icedtea-extras.mk"