summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-02-21 07:58:21 +0000
committerwiz <wiz@pkgsrc.org>2013-02-21 07:58:21 +0000
commit6b2e4f4df0d9b65a212e75af08d76c82192d91f2 (patch)
treebb7a720667f14a60c7e3348ec4d28e702cc1e93b
parentc3e3d9ef1e7fa4281531af53d2a47225768d5769 (diff)
downloadpkgsrc-6b2e4f4df0d9b65a212e75af08d76c82192d91f2.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.