summaryrefslogtreecommitdiff
path: root/openwrt/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/rules.mk')
-rw-r--r--openwrt/rules.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/openwrt/rules.mk b/openwrt/rules.mk
index 89adb3e..2cd8ea9 100644
--- a/openwrt/rules.mk
+++ b/openwrt/rules.mk
@@ -54,8 +54,7 @@ SED:=$(STAGING_DIR)/bin/sed -i -e
CP:=cp -fpR
ifneq ($(CONFIG_CCACHE),)
- export CCACHE_DIR:=$(TOPDIR)/ccache_$(ARCH)
- TARGET_CC:=ccache $(TARGET_CC)
+ TARGET_CC:=CCACHE_DIR=$(TOPDIR)/ccache_$(ARCH) ccache $(TARGET_CC)
endif
HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \