summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-02-21 22:39:58 +0000
committerwiz <wiz@pkgsrc.org>2013-02-21 22:39:58 +0000
commit58e872b0b6cb317556ee744e553e46d7152f17c9 (patch)
tree430e60892c471f9411953fa8f12f6c8bf30a78d8 /pkgtools/pkg_install
parent6cc11d15dd0f6e1c9bb449e3173133a1a8e7be89 (diff)
downloadpkgsrc-58e872b0b6cb317556ee744e553e46d7152f17c9.tar.gz
Fix build with clang.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/Makefile8
1 files changed, 7 insertions, 1 deletions
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}' \