[PATCH] tools/zlib: do not use ccache

Rosen Penev rosenp at gmail.com
Thu Dec 17 20:10:03 EST 2020


It seems to cause issues with zlib.

This matches behavior with other tools in the tools/ directory.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 tools/zlib/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/zlib/Makefile b/tools/zlib/Makefile
index 279851f758..bb7c15cce7 100644
--- a/tools/zlib/Makefile
+++ b/tools/zlib/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=zlib
 PKG_VERSION:=1.2.11
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SF/libpng http://www.zlib.net
@@ -24,6 +24,9 @@ include $(INCLUDE_DIR)/cmake.mk
 
 HOST_CFLAGS +=-fPIC
 
+CMAKE_HOST_OPTIONS += \
+	-DCMAKE_C_COMPILER:=$(HOSTCC_NOCACHE)
+
 define Host/Install
 	$(CP) $(HOST_BUILD_DIR)/libz.a $(STAGING_DIR_HOST)/lib/
 	$(CP) $(HOST_BUILD_DIR)/zconf.h $(STAGING_DIR_HOST)/include/
-- 
2.29.2




More information about the openwrt-devel mailing list