summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz>2013-02-21 07:58:21 +0000
committerwiz <wiz>2013-02-21 07:58:21 +0000
commitdd1018667a8c56dc040d741a11da1a316feff64d (patch)
treebb7a720667f14a60c7e3348ec4d28e702cc1e93b
parentb3c6855a9ed6bece6eb750bf98a1d86157b45a57 (diff)
downloadpkgsrc-dd1018667a8c56dc040d741a11da1a316feff64d.tar.gz
When using clang, set ACTIVE_CC so the share/mk Makefiles know
which flags to suppress (in particular e.g. -Wno-traditional, which isn't recognized and breaks the build with clang).
-rw-r--r--sysutils/checkperms/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/checkperms/Makefile b/sysutils/checkperms/Makefile
index cdd4162482d..2ad5962e01d 100644
--- a/sysutils/checkperms/Makefile
+++ b/sysutils/checkperms/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2012/10/23 19:50:55 asau Exp $
+# $NetBSD: Makefile,v 1.26 2013/02/21 07:58:21 wiz Exp $
#
DISTNAME= checkperms-1.11
@@ -14,6 +14,12 @@ AUTO_MKDIRS= yes
USE_BSD_MAKEFILE= yes
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mclang*)
+MAKE_FLAGS+= ACTIVE_CC=clang
+.endif
+
.include "../../mk/bsd.prefs.mk"
# Avoid self-referential and circular dependencies.