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).
This commit is contained in:
wiz 2013-02-21 07:58:21 +00:00
parent 06ed9834e1
commit 0d0c0bad90

View file

@ -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.