From patchwork Wed Feb 10 20:59:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 581629 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id A46B9140783 for ; Thu, 11 Feb 2016 07:59:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E86518930D; Wed, 10 Feb 2016 20:59:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z9X0PyhAuI2U; Wed, 10 Feb 2016 20:59:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 07D8888872; Wed, 10 Feb 2016 20:59:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6D1C91C086E for ; Wed, 10 Feb 2016 20:59:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 69841880FB for ; Wed, 10 Feb 2016 20:59:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i1zSNV5erleL for ; Wed, 10 Feb 2016 20:59:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout07.t-online.de (mailout07.t-online.de [194.25.134.83]) by hemlock.osuosl.org (Postfix) with ESMTPS id 2A45D87E44 for ; Wed, 10 Feb 2016 20:59:18 +0000 (UTC) Received: from fwd16.aul.t-online.de (fwd16.aul.t-online.de [172.20.26.243]) by mailout07.t-online.de (Postfix) with SMTP id 243F652BD6 for ; Wed, 10 Feb 2016 21:59:16 +0100 (CET) Received: from fli4l.lan.fli4l (VUxA3iZVohcb9LerIdMLzV04jUon7twqJDsgAaJSlDUwailMxc+iDZWPC4T8Lg6gtE@[84.191.199.132]) by fwd16.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1aTbqy-1GExm40; Wed, 10 Feb 2016 21:59:12 +0100 Received: from mahler.lan.fli4l ([192.168.1.1]:52058 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.86) (envelope-from ) id 1aTbqx-0001Oz-A5; Wed, 10 Feb 2016 21:59:11 +0100 From: Bernd Kuhls To: buildroot@buildroot.org Date: Wed, 10 Feb 2016 21:59:08 +0100 Message-Id: <1455137950-18164-1-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.7.0 X-ID: VUxA3iZVohcb9LerIdMLzV04jUon7twqJDsgAaJSlDUwailMxc+iDZWPC4T8Lg6gtE X-TOI-MSGID: 7c676f8a-bb65-4598-9ff2-7d90ff18e284 Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 1/1] package/gdb: add optional support for xz X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- package/gdb/gdb.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index 3b0f501..32d52eb 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