diff options
author | John Crispin <john@openwrt.org> | 2012-01-15 11:43:13 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2012-01-15 11:43:13 +0000 |
commit | ccb6b0a063a4133ac59c811476b670c7d66f84ed (patch) | |
tree | 6a897cd4b2dfd787d1b4da763623b8157945324a /rules.mk | |
parent | f9e41adc80d0492ff9c94b4b660ac9ac8a6cae02 (diff) | |
download | upstream-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.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 = \ |