From c801234a83d0a4bd6c22f48b349ae4d8e3e30f57 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 7 Sep 2011 23:41:04 +0000 Subject: Hide some potential bugs by disabling default warnings with clang. --- devel/binutils/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'devel') 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. # -- cgit v1.2.3