move ccache dir to staging_dir_arch (removing the staging dir will make the ccache...
[openwrt-10.03/.git] / rules.mk
index eebc758224c6d811f761cbf6fb6470e05623fb0a..0ec5daf086e354ba60fc884dabbf7a0c2da2fcc7 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -60,7 +60,7 @@ CP:=cp -fpR
 
 ifneq ($(CONFIG_CCACHE),)
   # FIXME: move this variable to a better location
-  export CCACHE_DIR=$(TOPDIR)/ccache_$(ARCH)
+  export CCACHE_DIR=$(STAGING_DIR)/ccache
   TARGET_CC:= ccache $(TARGET_CC)
 endif