From 96dc6701af877a4aa4da20a9e0d5b849cc5c8356 Mon Sep 17 00:00:00 2001 From: Thomas De Schampheleire Date: Tue, 7 Apr 2020 11:49:49 +0200 Subject: [PATCH] package/libarchive: make optional zstd dependency explicit Otherwise, the presence of zstd support in libarchive will depend on build order. Signed-off-by: Thomas De Schampheleire Signed-off-by: Thomas Petazzoni --- package/libarchive/libarchive.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/libarchive/libarchive.mk b/package/libarchive/libarchive.mk index 60838eea0a..94f974e7d1 100644 --- a/package/libarchive/libarchive.mk +++ b/package/libarchive/libarchive.mk @@ -112,6 +112,13 @@ else LIBARCHIVE_CONF_OPTS += --without-lzma endif +ifeq ($(BR2_PACKAGE_ZSTD),y) +LIBARCHIVE_DEPENDENCIES += zstd +LIBARCHIVE_CONF_OPTS += --with-zstd +else +LIBARCHIVE_CONF_OPTS += --without-zstd +endif + # The only user of host-libarchive needs zlib support HOST_LIBARCHIVE_DEPENDENCIES = host-zlib HOST_LIBARCHIVE_CONF_OPTS = \ -- 2.30.2