summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg>2011-09-07 23:41:04 +0000
committerjoerg <joerg>2011-09-07 23:41:04 +0000
commit9826f6dfc084206ce43de21ca72e496b5434cdfc (patch)
tree6d852069cbbe43a2050bcb2a370892877b9179b1 /devel
parent6d6c0c3dd25d1de90dd1a30b77f6ac438650c907 (diff)
downloadpkgsrc-9826f6dfc084206ce43de21ca72e496b5434cdfc.tar.gz
Hide some potential bugs by disabling default warnings with clang.
Diffstat (limited to 'devel')
-rw-r--r--devel/binutils/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile
index 6a6814c990b..1566a7940e4 100644
--- a/devel/binutils/Makefile
+++ b/devel/binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2011/08/22 08:51:46 wiz Exp $
+# $NetBSD: Makefile,v 1.40 2011/09/07 23:41:04 joerg Exp $
DISTNAME= binutils-2.17
PKGREVISION= 1
@@ -44,6 +44,12 @@ PLIST_VARS+= gprof
PLIST.gprof= yes
.endif
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+= -Wno-unused-value -Wno-format-security \
+ -Wno-uninitialized -Wno-format
+.endif
+
# Prevent the need to run texi2pod.pl and pod2man hence
# the need for perl as build dependency.
#