From: Sven Neumann Date: Fri, 23 Oct 2009 07:53:12 +0000 (+0200) Subject: libarchive: add conditional dependency on zlib X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc5ae2c428d1012317653816f5001892574cd3ab;p=buildroot.git libarchive: add conditional dependency on zlib If zlib is selected, then it should be built before libarchive so that libarchive picks up the headers and includes support for zlib compression. Signed-off-by: Sven Neumann Signed-off-by: Peter Korsgaard --- diff --git a/package/libarchive/libarchive.mk b/package/libarchive/libarchive.mk index 32f68f7403..efd1656b48 100644 --- a/package/libarchive/libarchive.mk +++ b/package/libarchive/libarchive.mk @@ -10,6 +10,10 @@ LIBARCHIVE_LIBTOOL_PATCH = NO LIBARCHIVE_INSTALL_STAGING = YES LIBARCHIVE_INSTALL_TARGET = YES +ifeq ($(BR2_PACKAGE_ZLIB),y) +LIBARCHIVE_DEPENDENCIES = zlib +endif + LIBARCHIVE_CONF_OPT = \ $(if $(BR2_PACKAGE_LIBARCHIVE_BSDTAR),--enable-bsdtar,--disable-bsdtar) \ $(if $(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),--enable-bsdcpio,--disable-bsdcpio)