aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-01-15 11:43:13 +0000
committerJohn Crispin <john@openwrt.org>2012-01-15 11:43:13 +0000
commitccb6b0a063a4133ac59c811476b670c7d66f84ed (patch)
tree6a897cd4b2dfd787d1b4da763623b8157945324a /rules.mk
parentf9e41adc80d0492ff9c94b4b660ac9ac8a6cae02 (diff)
downloadupstream-ccb6b0a063a4133ac59c811476b670c7d66f84ed.tar.gz
upstream-ccb6b0a063a4133ac59c811476b670c7d66f84ed.tar.bz2
upstream-ccb6b0a063a4133ac59c811476b670c7d66f84ed.zip
tools: clean up Makefiles / make ccache work
SVN-Revision: 29754
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 53891eaa97..ef61c4d749 100644
--- a/rules.mk
+++ b/rules.mk
@@ -170,6 +170,7 @@ PKG_CONFIG:=$(STAGING_DIR_HOST)/bin/pkg-config
export PKG_CONFIG
HOSTCC:=gcc
+HOSTCC_NOCACHE:=$(HOSTCC)
HOST_CFLAGS:=-O2 -I$(STAGING_DIR_HOST)/include
HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib
@@ -188,6 +189,7 @@ INSTALL_CONF:=install -m0600
ifneq ($(CONFIG_CCACHE),)
TARGET_CC:= ccache $(TARGET_CC)
TARGET_CXX:= ccache $(TARGET_CXX)
+ HOSTCC:= ccache $(HOSTCC)
endif
TARGET_CONFIGURE_OPTS = \