build: move the CCACHE_DIR to the build targets so that it doesn't interfere with...
[openwrt/staging/chunkeey.git] / include / package.mk
index 1cf4d64cc9098e6c48b9ffc3c9a8af532ab18e01..2ebd66d119c7fe714123d9d0df708e1324e36f5f 100644 (file)
@@ -90,6 +90,7 @@ define Build/Exports/Default
   $(1) : export CONFIG_SITE:=$$(CONFIG_SITE)
   $(1) : export PKG_CONFIG_PATH:=$$(PKG_CONFIG_PATH)
   $(1) : export PKG_CONFIG_LIBDIR:=$$(PKG_CONFIG_PATH)
+  $(1) : export CCACHE_DIR:=$(STAGING_DIR)/ccache
 endef
 Build/Exports=$(Build/Exports/Default)