From: Thomas De Schampheleire Date: Tue, 7 Apr 2020 09:49:49 +0000 (+0200) Subject: package/libarchive: make optional zstd dependency explicit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96dc6701af877a4aa4da20a9e0d5b849cc5c8356;p=buildroot.git 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 --- 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 = \