summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-02-10 21:59:08 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-16 23:14:07 +0100
commit18ce7f11ff3481308d911c362f0c2ef44b9492bc (patch)
tree180c5ba884a69ecd3f8703366cb3ce7f758412cc
parentb37ecac8e2e50fd187ca6a1d08ad2094a8a1fcec (diff)
downloadbuildroot-18ce7f11ff3481308d911c362f0c2ef44b9492bc.tar.gz
buildroot-18ce7f11ff3481308d911c362f0c2ef44b9492bc.zip
package/gdb: add optional support for xz
When xz was compiled before, gdb will use it as optional dependency: $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/gdb | grep NEEDED 0x00000001 (NEEDED) Shared library: [libdl.so.1] 0x00000001 (NEEDED) Shared library: [libncurses.so.5] 0x00000001 (NEEDED) Shared library: [libz.so.1] 0x00000001 (NEEDED) Shared library: [libm.so.1] 0x00000001 (NEEDED) Shared library: [liblzma.so.5] 0x00000001 (NEEDED) Shared library: [libc.so.1] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/gdb/gdb.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index 3b0f501db8..32d52eb3a1 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -118,6 +118,13 @@ else
GDB_CONF_OPTS += --without-expat
endif
+ifeq ($(BR2_PACKAGE_XZ),y)
+GDB_CONF_OPTS += --with-lzma
+GDB_DEPENDENCIES += xz
+else
+GDB_CONF_OPTS += --without-lzma
+endif
+
ifeq ($(BR2_PACKAGE_ZLIB),y)
GDB_CONF_OPTS += --with-zlib
GDB_DEPENDENCIES += zlib
OpenPOWER on IntegriCloud