package/zstd: disable ccache for host package

We need to disable ccache when building host-zstd as the upcoming
ccache update depends on host-zstd.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
[yann.morin.1998@free.fr: introduce HOST_ZSTD_ENV]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
James Hilliard 2023-01-06 18:04:35 -07:00 committed by Yann E. MORIN
parent 359205b4f5
commit 9fba87b8d7

View File

@ -96,14 +96,18 @@ define ZSTD_INSTALL_TARGET_CMDS
endef
HOST_ZSTD_OPTS += PREFIX=$(HOST_DIR)
HOST_ZSTD_ENV = $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS)
# We are a ccache dependency, so we can't use ccache
HOST_ZSTD_ENV += CC="$(HOSTCC_NOCCACHE)" CXX="$(HOSTCXX_NOCCACHE)"
define HOST_ZSTD_BUILD_CMDS
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) $(HOST_ZSTD_OPTS) \
$(HOST_ZSTD_ENV) $(MAKE) $(HOST_ZSTD_OPTS) \
-C $(@D) zstd-release lib-release
endef
define HOST_ZSTD_INSTALL_CMDS
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) $(HOST_ZSTD_OPTS) \
$(HOST_ZSTD_ENV) $(MAKE) $(HOST_ZSTD_OPTS) \
-C $(@D) install
endef