aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.compiler.mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2021-07-12 19:51:41 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2021-07-12 19:52:52 +0000
commit6da773cb1ce4b5ce395266794e375b3b0f981e6a (patch)
tree280b881c2cbf4e50c6df95f0cff5c2a715bd58e4 /share/mk/bsd.compiler.mk
parent66c183f43f0c05ed9238ed9c1859c0c9df7b66dd (diff)
downloadsrc-6da773cb1ce4b5ce395266794e375b3b0f981e6a.tar.gz
src-6da773cb1ce4b5ce395266794e375b3b0f981e6a.zip
bsd.compiler.mk: Use CCACHE_PKG_PREFIX as ports now supports.
Diffstat (limited to 'share/mk/bsd.compiler.mk')
-rw-r--r--share/mk/bsd.compiler.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/mk/bsd.compiler.mk b/share/mk/bsd.compiler.mk
index 97198f70d5b6..a52c3968fb09 100644
--- a/share/mk/bsd.compiler.mk
+++ b/share/mk/bsd.compiler.mk
@@ -64,8 +64,9 @@ CCACHE_BUILD_TYPE?= command
# PATH since it is more clear that ccache is used and avoids wasting time
# for mkdep/linking/asm builds.
LOCALBASE?= /usr/local
-CCACHE_WRAPPER_PATH?= ${LOCALBASE}/libexec/ccache
-CCACHE_BIN?= ${LOCALBASE}/bin/ccache
+CCACHE_PKG_PREFIX?= ${LOCALBASE}
+CCACHE_WRAPPER_PATH?= ${CCACHE_PKG_PREFIX}/libexec/ccache
+CCACHE_BIN?= ${CCACHE_PKG_PREFIX}/bin/ccache
.if exists(${CCACHE_BIN})
# Export to ensure sub-makes can filter it out for mkdep/linking and
# to chain down into kernel build which won't include this file.