libarchive: add conditional dependency on zlib
authorSven Neumann <s.neumann@raumfeld.com>
Fri, 23 Oct 2009 07:53:12 +0000 (09:53 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 23 Oct 2009 08:15:11 +0000 (10:15 +0200)
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 <s.neumann@raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libarchive/libarchive.mk

index 32f68f7403f333613222804b04737a2a79766cfd..efd1656b48e1909084a4333edd906eb2f0168a5c 100644 (file)
@@ -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)