summaryrefslogtreecommitdiff
path: root/devel/binutils
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-09-07 23:41:04 +0000
committerjoerg <joerg@pkgsrc.org>2011-09-07 23:41:04 +0000
commitc801234a83d0a4bd6c22f48b349ae4d8e3e30f57 (patch)
tree6d852069cbbe43a2050bcb2a370892877b9179b1 /devel/binutils
parent323a7c648e2e4675f47d28e1f56a69260486d0d0 (diff)
downloadpkgsrc-c801234a83d0a4bd6c22f48b349ae4d8e3e30f57.tar.gz
Hide some potential bugs by disabling default warnings with clang.
Diffstat (limited to 'devel/binutils')
-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.
#