From patchwork Thu Jul 21 14:10:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 651206 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rwGGk1YgGz9sXx for ; Fri, 22 Jul 2016 00:23:26 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=e-labworks-com.20150623.gappssmtp.com header.i=@e-labworks-com.20150623.gappssmtp.com header.b=u9fexTUP; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EE7E78A0FF; Thu, 21 Jul 2016 14:23:21 +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 fiiPzYtDabzL; Thu, 21 Jul 2016 14:23:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 9E52188A36; Thu, 21 Jul 2016 14:23:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5733C1C15DD for ; Thu, 21 Jul 2016 14:23:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5080F8C700 for ; Thu, 21 Jul 2016 14:23:18 +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 p-MC1l0OAgs5 for ; Thu, 21 Jul 2016 14:23:17 +0000 (UTC) X-Greylist: delayed 00:12:14 by SQLgrey-1.7.6 Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7D6408C6AC for ; Thu, 21 Jul 2016 14:23:17 +0000 (UTC) Received: by mail-qt0-f195.google.com with SMTP id u25so3840821qtb.3 for ; Thu, 21 Jul 2016 07:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=AXaTkdoydZSUE+dEVju2cdOfYNY+qgKz3xHmWHjpqbs=; b=u9fexTUPt0TtobIt/IX891r+fAoNZXLPf6VCsX5rWDjZfUNjK2toGzNeQJmebYrOfT MhNaXq/2MpEUbMkD5vKS/lM6gd7NWLGs2HUWVqOXvDUUArXtHfGIDCnFafGMxPlC5Xkl B2tifdD72IDzoZSPE7o/tTa0DAttkBAn4lPV9Stq5sYUWnbBsDIhT536zf7eDxYBIhpk 6kgomH1+PST+D0HjRQeKuDWbO4sY9L1K4QPK1uZidtxtfxLAv127SLrBSHB4KTdWqa7a yQ6rodAKEs2QtkSohuRkb2f2RrT2PnhRkYqmdmP3OP9lKN3xC9CoLCb6wq85ncExSg39 HH2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AXaTkdoydZSUE+dEVju2cdOfYNY+qgKz3xHmWHjpqbs=; b=GyZOSA+rRWmiBSgpT/RnlFOh0NOicNapEZsykbeSYZN2oMMSaC8lA7M6MUzGFzZo1P Sonf/ICt64dXbMlLf5Yr+jLHEU/U3puPDw4vqfm1yzP5A6YQw62SMY5kRPZsCRgWY6uH 05ymtwPEJzGlNjcDxCEBfwMw0YVfJIgOHSyF4Tx+oUzzM7haQxwSDX8f57m/EdEZluCy mq+aIqhSljLSCq5NZszfdSXn5qr7L6gDdT8LqB8AVI/BSOPgfgRhlh/HhNt9pj4Wzi8f y+bHCcTVTUd1fg6bR3ZLSBa5ouHcOxPByfam5u+FZG3U5AIO8XZkBWuDdR06FAFtiFSJ 8igA== X-Gm-Message-State: ALyK8tK593hGKIr85fWLsobG1j2/HkwNLteD8BxD0PNy8FORoZke5Eflm5zBt+LiHYv7zg== X-Received: by 10.200.38.107 with SMTP id v40mr28767389qtv.76.1469110262726; Thu, 21 Jul 2016 07:11:02 -0700 (PDT) Received: from localhost.localdomain ([177.32.209.20]) by smtp.gmail.com with ESMTPSA id 7sm4440926qkd.25.2016.07.21.07.11.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jul 2016 07:11:02 -0700 (PDT) From: Sergio Prado To: buildroot@buildroot.org Date: Thu, 21 Jul 2016 11:10:26 -0300 Message-Id: <1469110226-24349-1-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH v2] libarchive: fix build error when linking with lzma 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" Build fails when linking with liblzma compiled without threads support. ./.libs/libarchive.so: undefined reference to `lzma_cputhreads' ./.libs/libarchive.so: undefined reference to `lzma_stream_encoder_mt' So let's enable LZMA only when toolchain has threads support. Fixes: http://autobuild.buildroot.org/results/2cb7f8a056982d0b894d0e2531ef357e74c8b796 http://autobuild.buildroot.org/results/d12954fbd460d396f255158fa127f39ff9d2be8d http://autobuild.buildroot.org/results/abe10c70f38423a212ab27d7d27e22174eaa5aab Many more... Signed-off-by: Sergio Prado --- Changes v1 -> v2: - removing extra comma from evaluation --- package/libarchive/libarchive.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/libarchive/libarchive.mk b/package/libarchive/libarchive.mk index 6e9c0a1e867b..30a231885a71 100644 --- a/package/libarchive/libarchive.mk +++ b/package/libarchive/libarchive.mk @@ -92,7 +92,8 @@ else LIBARCHIVE_CONF_OPTS += --without-zlib endif -ifeq ($(BR2_PACKAGE_XZ),y) +# libarchive requires LZMA with thread support in the toolchain +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_PACKAGE_XZ),yy) LIBARCHIVE_DEPENDENCIES += xz LIBARCHIVE_CONF_OPTS += --with-lzma else