diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2015-03-24 23:19:47 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-03-25 00:31:26 +0100 |
commit | 26ee3d49cd244041cc7c86afa8cde38ed60d284c (patch) | |
tree | 2dc02a1652a15f31a9bfc7d797680c4d3ee7d279 | |
parent | 22014e038047dfa2a303fecce0a22d1c5811b6a5 (diff) | |
download | buildroot-26ee3d49cd244041cc7c86afa8cde38ed60d284c.tar.gz buildroot-26ee3d49cd244041cc7c86afa8cde38ed60d284c.zip |
package/libxml2: add optional LZMA support
LZMA support is provided by xz, since liblzma is long dead.
Contrary to zlib, liblzma uses pkg-config, so we do not need to add the
full path to libzma.
Reported-by: vdm on IRC
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/libxml2/libxml2.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk index 354c17853a..264e43765f 100644 --- a/package/libxml2/libxml2.mk +++ b/package/libxml2/libxml2.mk @@ -16,7 +16,7 @@ ifneq ($(BR2_LARGEFILE),y) LIBXML2_CONF_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS) -DNO_LARGEFILE_SOURCE" endif -LIBXML2_CONF_OPTS = --with-gnu-ld --without-python --without-debug --without-lzma +LIBXML2_CONF_OPTS = --with-gnu-ld --without-python --without-debug HOST_LIBXML2_DEPENDENCIES = host-pkgconf LIBXML2_DEPENDENCIES = host-pkgconf @@ -30,6 +30,13 @@ else LIBXML2_CONF_OPTS += --without-zlib endif +ifeq ($(BR2_PACKAGE_XZ),y) +LIBXML2_DEPENDENCIES += xz +LIBXML2_CONF_OPTS += --with-lzma +else +LIBXML2_CONF_OPTS += --without-lzma +endif + LIBXML2_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv) ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV),y) |