tools: drop circular dependency between patch and ccache, build patch without ccache...
authorFelix Fietkau <nbd@openwrt.org>
Sun, 26 Jul 2015 13:02:35 +0000 (13:02 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 26 Jul 2015 13:02:35 +0000 (13:02 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r46434

SVN-Revision: 46498

tools/Makefile
tools/patch/Makefile

index 2f516d2383e5f9ae5465adebd3d9fb3bd7674e68..d2fe2ffddf4b7207a937ca75efe1c2728e8067aa 100644 (file)
@@ -73,7 +73,7 @@ $(curdir)/gengetopt/compile := $(curdir)/libtool/install
 $(curdir)/patchelf/compile := $(curdir)/libtool/install
 
 ifneq ($(CONFIG_CCACHE)$(CONFIG_SDK),)
-$(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache/install))
+$(foreach tool, $(filter-out patch,$(tools-y)), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache/install))
 tools-y += ccache
 endif
 
index 94b36075929c699bf89d67fa519c383246e598b6..4774478c9650ddf7d9dc695c74fa3f16ec1b14a5 100644 (file)
@@ -15,4 +15,7 @@ PKG_MD5SUM:=e3da7940431633fb65a01b91d3b7a27a
 
 include $(INCLUDE_DIR)/host-build.mk
 
+HOSTCC := $(HOSTCC_NOCACHE)
+HOSTCXX := $(HOSTCXX_NOCACHE)
+
 $(eval $(call HostBuild))