From: nbd Date: Mon, 20 Jul 2015 10:50:46 +0000 (+0000) Subject: tools: drop circular dependency between patch and ccache, build patch without ccache... X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;ds=sidebyside;h=bb2b13ecae48669f86660747381f0a1f8015d803;hp=0fc59fbed1a797c8bd6072d1f5df15d37c6e3cd4;p=openwrt-working-2016%2F.git tools: drop circular dependency between patch and ccache, build patch without ccache (fixes #20132) Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46434 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/tools/Makefile b/tools/Makefile index 8b5dd6c520..60041ddc31 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -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 diff --git a/tools/patch/Makefile b/tools/patch/Makefile index 94b3607592..4774478c96 100644 --- a/tools/patch/Makefile +++ b/tools/patch/Makefile @@ -15,4 +15,7 @@ PKG_MD5SUM:=e3da7940431633fb65a01b91d3b7a27a include $(INCLUDE_DIR)/host-build.mk +HOSTCC := $(HOSTCC_NOCACHE) +HOSTCXX := $(HOSTCXX_NOCACHE) + $(eval $(call HostBuild))