diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2018-02-25 11:32:18 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2018-02-25 11:32:18 +0800 |
commit | 5be8d363cd01d930e088beaafbdbcd4a16208f1a (patch) | |
tree | 9140d225562aa3e7a79a97510dcb4b19ac72360f /Mk | |
parent | 433fd990d6921dfe9b004ed65d603bf6b4b2a40c (diff) | |
download | freebsd-ports-graphics-5be8d363cd01d930e088beaafbdbcd4a16208f1a.tar.gz freebsd-ports-graphics-5be8d363cd01d930e088beaafbdbcd4a16208f1a.tar.zst freebsd-ports-graphics-5be8d363cd01d930e088beaafbdbcd4a16208f1a.zip |
WITH_CCACHE_BUILD: Fix some ports not using proper CCACHE_DIR.
Some ports will truncate CCACHE_DIR from the env and due to HOME=${WRKDIR}
will incorrectly use ${WRKDIR}/.ccache. Symlink to the proper place.
Approved by: portmgr (implicit)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.ccache.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Mk/bsd.ccache.mk b/Mk/bsd.ccache.mk index 8283b8bc86c..06d643c44fb 100644 --- a/Mk/bsd.ccache.mk +++ b/Mk/bsd.ccache.mk @@ -51,6 +51,13 @@ MAKE_ENV+= CCACHE_DIR="${CCACHE_DIR}" CONFIGURE_ENV+= CCACHE_DIR="${CCACHE_DIR}" . endif .endif + +# Some ports will truncate CCACHE_DIR from the env and due to HOME=${WRKDIR} +# will incorrectly use ${WRKDIR}/.ccache. Symlink to the proper place. +${WRKDIR}/.ccache: ${WRKDIR} + @${LN} -sf ${CCACHE_DIR} ${WRKDIR}/.ccache +ccache-wrkdir-link: ${WRKDIR}/.ccache .PHONY +post-extract: ccache-wrkdir-link .endif .endif |