diff --git a/configure b/configure index 6c9c88e606f61..767eb332ac190 100755 --- a/configure +++ b/configure @@ -970,6 +970,13 @@ then putvar CFG_CCACHE_CPP2 fi +if [ ! -z "$CFG_ENABLE_CCACHE" ] +then + CFG_CCACHE_BASEDIR=${CFG_SRC_DIR} + putvar CFG_CCACHE_BASEDIR +fi + + if [ ! -z $BAD_PANDOC ] then CFG_PANDOC= diff --git a/mk/platform.mk b/mk/platform.mk index eecdef506926a..9236bf57f2f4e 100644 --- a/mk/platform.mk +++ b/mk/platform.mk @@ -396,6 +396,11 @@ ifeq ($(CFG_CCACHE_CPP2),1) export CCACHE_CPP endif +ifdef CFG_CCACHE_BASEDIR + CCACHE_BASEDIR=$(CFG_CCACHE_BASEDIR) + export CCACHE_BASEDIR +endif + define CFG_MAKE_TOOLCHAIN CFG_COMPILE_C_$(1) = $$(CC_$(1)) \ $$(CFG_GCCISH_CFLAGS) \