Commit 9eb70889 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

libarchive: add optional libxml2 support

parent ec0b5164
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -14,8 +14,14 @@ LIBARCHIVE_DEPENDENCIES = zlib
endif

LIBARCHIVE_CONF_OPT = \
	--without-xml2 \
	$(if $(BR2_PACKAGE_LIBARCHIVE_BSDTAR),--enable-bsdtar,--disable-bsdtar) \
	$(if $(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),--enable-bsdcpio,--disable-bsdcpio)

ifeq ($(BR2_PACKAGE_LIBXML2),y)
LIBARCHIVE_DEPENDENCIES += libxml2
LIBARCHIVE_CONF_ENV += XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
else
LIBARCHIVE_CONF_OPT += --without-xml2
endif

$(eval $(call AUTOTARGETS,package,libarchive))