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
commit72156b3785156550c9f25de2ddb5ffc9602877b0 (patch)
tree430e60892c471f9411953fa8f12f6c8bf30a78d8 /pkgtools/pkg_install
parent041dff5c387789f11a6cd6a0d29a057c04627e33 (diff)
downloadpkgsrc-72156b3785156550c9f25de2ddb5ffc9602877b0.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}' \