package/libarchive: add lz4 optional dependency

lz4 is available since version 3.2.0 and
724f3f918e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2020-02-28 23:12:35 +01:00 committed by Thomas Petazzoni
parent 0db2b33781
commit 9a514c72cd

View File

@ -79,6 +79,13 @@ else
LIBARCHIVE_CONF_OPTS += --without-xml2 LIBARCHIVE_CONF_OPTS += --without-xml2
endif endif
ifeq ($(BR2_PACKAGE_LZ4),y)
LIBARCHIVE_CONF_OPTS += --with-lz4
LIBARCHIVE_DEPENDENCIES += lz4
else
LIBARCHIVE_CONF_OPTS += --without-lz4
endif
ifeq ($(BR2_PACKAGE_LZO),y) ifeq ($(BR2_PACKAGE_LZO),y)
LIBARCHIVE_DEPENDENCIES += lzo LIBARCHIVE_DEPENDENCIES += lzo
else else
@ -131,6 +138,7 @@ HOST_LIBARCHIVE_CONF_OPTS = \
--without-expat \ --without-expat \
--without-libiconv-prefix \ --without-libiconv-prefix \
--without-xml2 \ --without-xml2 \
--without-lz4 \
--without-lzo2 \ --without-lzo2 \
--without-mbedtls \ --without-mbedtls \
--without-nettle \ --without-nettle \