From patchwork Mon Aug 12 18:02:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 266603 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 543F42C00AF for ; Tue, 13 Aug 2013 04:03:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 543DD94C13; Mon, 12 Aug 2013 18:02:59 +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 bgWz9Bpdcm7r; Mon, 12 Aug 2013 18:02:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 288699312C; Mon, 12 Aug 2013 18:02:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1FF1E1BF82D for ; Mon, 12 Aug 2013 18:03:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F15918BAB7 for ; Mon, 12 Aug 2013 18:02:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aOS0w4nfpgVu for ; Mon, 12 Aug 2013 18:02:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id C05758BF16 for ; Mon, 12 Aug 2013 18:02:50 +0000 (UTC) Received: from asgard (host181.190-138-224.telecom.net.ar [190.138.224.181]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.7/8.14.7) with ESMTP id r7CI2ht6000403 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 12 Aug 2013 18:02:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1376330568; bh=1e5OCOyF1LRgUdhi/i7jC8INKVnyiOtEutZw/VDBhAo=; h=From:To:Cc:Subject:Date; b=WQ7xNNUESGQBjwLf4ICRruhRxunEiH/PvS4xo6431p8LcD50t9YpN0JGbCl7RYTHu qvuB6TVSEU6A8YljvJht4WbDEm/L0Onz43Uhdk1klF7s4zfzga0wmD6gGcIQK+5IfB ZmZJ6Z7WE7ryFkTo3Lide+OgWGGet0y81159kdh0= Received: by asgard (sSMTP sendmail emulation); Mon, 12 Aug 2013 15:02:42 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Mon, 12 Aug 2013 15:02:42 -0300 Message-Id: <1376330562-5123-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.1.5 X-Virus-Scanned: clamav-milter 0.97.7 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH] ltrace: disable libunwind for uClibc toolchains X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net ltrace requires that libunwind is built with backtrace() support. For the internal uClibc toolchain we don't enable it, and for external uClibc toolchains we can't know. It's also unavailable for static uClibc toolchains. So just disable libunwind support for uClibc toolchains in general. Fixes: http://autobuild.buildroot.net/results/ee0/ee037a19590fb85c64f97f78f74bcfd4d7766706/ Signed-off-by: Gustavo Zacarias --- package/ltrace/ltrace.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/ltrace/ltrace.mk b/package/ltrace/ltrace.mk index 7b8d859..55930b8 100644 --- a/package/ltrace/ltrace.mk +++ b/package/ltrace/ltrace.mk @@ -13,4 +13,15 @@ LTRACE_CONF_OPT = --disable-werror LTRACE_LICENSE = GPLv2 LTRACE_LICENSE_FILES = COPYING +# ltrace can use libunwind only if libc has backtrace() support +# We don't normally do so for uClibc and we can't know if it's external +ifeq ($(BR2_PACKAGE_LIBUNWIND),y) +ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),) +LTRACE_CONF_OPT += --with-libunwind=yes +LTRACE_DEPENDENCIES += libunwind +else +LTRACE_CONF_OPT += --with-libunwind=no +endif +endif + $(eval $(autotools-package))