Hi Matthias,
Le 04/20/12 12:22, Matthias Schiffer a écrit :
r31166 changes the package format from gzip to xz, but didn't change PKG_CAT.
Furthermore, configure fails if no ccache is installed in 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>
The issues you are fixing look valid to me, but they deserve two
separate patches, would you mind resending these fixes as two
independent ones?
Thanks!
---
tools/ccache/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tools/ccache/Makefile b/tools/ccache/Makefile
index 9bc0b59..6506c1d 100644
--- a/tools/ccache/Makefile
+++ b/tools/ccache/Makefile
@@ -13,13 +13,17 @@ PKG_VERSION:=3.1.7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
PKG_MD5SUM:=80a698c22d0b06b19c88ac58e8d8b632
-PKG_CAT:=zcat
+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
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel