From 58e872b0b6cb317556ee744e553e46d7152f17c9 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 21 Feb 2013 22:39:58 +0000 Subject: Fix build with clang. --- pkgtools/pkg_install/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pkgtools/pkg_install') diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile index 73f7d100091..efcced0ea20 100644 --- a/pkgtools/pkg_install/Makefile +++ b/pkgtools/pkg_install/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.192 2013/02/14 09:13:41 obache Exp $ +# $NetBSD: Makefile,v 1.193 2013/02/21 22:41:37 wiz Exp $ # Notes to package maintainers: # @@ -79,6 +79,12 @@ FILES_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q} \ MESSAGE_SUBST+= PKGVULNDIR=${PKG_DBDIR:Q} \ EGDIR=${EGDIR:Q} +.include "../../mk/compiler.mk" + +.if !empty(CC_VERSION:Mclang*) +MAKE_FLAGS+= ACTIVE_CC=clang +.endif + .include "../../mk/bsd.prefs.mk" VERSION!= ${AWK} '/PKGTOOLS_VERSION/ {print $$3}' \ -- cgit v1.2.3