configure fails if no ccache is installed on the system, as the default
configure command sets CC=$(HOSTCC), which is "ccache gcc" when ccache is
enabled. Fix this by setting CC=$(HOSTCC_NOCACHE) as configure argument.

Signed-off-by: Matthias Schiffer <mschif...@universe-factory.net>
---
 tools/ccache/Makefile |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/ccache/Makefile b/tools/ccache/Makefile
index 1add546..6506c1d 100644
--- a/tools/ccache/Makefile
+++ b/tools/ccache/Makefile
@@ -18,8 +18,12 @@ PKG_CAT:=xzcat
 include $(INCLUDE_DIR)/host-build.mk
 
 ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
+  define Host/Configure
+       $(call Host/Configure/Default,CC="$(HOSTCC_NOCACHE)")
+  endef
+
   define Host/Compile
-       $(MAKE) CC="$(HOSTCC_NOCACHE)" -C $(HOST_BUILD_DIR)
+       $(MAKE) -C $(HOST_BUILD_DIR)
   endef
 
   define Host/Clean
-- 
1.7.10

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to