From patchwork Thu Jul 21 12:20:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 651177 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]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rwCZX6fKrz9srZ for ; Thu, 21 Jul 2016 22:21:56 +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=fPw8OQAJ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 407F1C0614; Thu, 21 Jul 2016 12:21:55 +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 eH1NmYNsz7tg; Thu, 21 Jul 2016 12:21:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id CB1E4C059E; Thu, 21 Jul 2016 12:21:52 +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 3724E1C2894 for ; Thu, 21 Jul 2016 12:21:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3297D8A1CF for ; Thu, 21 Jul 2016 12:21:52 +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 uhwbV3pmWpTz for ; Thu, 21 Jul 2016 12:21:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by hemlock.osuosl.org (Postfix) with ESMTPS id 270E08A3CA for ; Thu, 21 Jul 2016 12:21:51 +0000 (UTC) Received: by mail-qk0-f196.google.com with SMTP id q8so6278510qke.3 for ; Thu, 21 Jul 2016 05:21:51 -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=ujhZNbTIOkrYnMVAYJ+Mf0cQw92ly6+kxl9KusshuuE=; b=fPw8OQAJ1YeSSh0p68A9kQ3dnp62yg4NraZ5xVilmMPcGIJePumVXcYvvDqUdtuxrx es2xuoGlyUosi+8RnCjLy+opYjyvtzQ30TZUqXetChWx0fZYHOCZRUVebqn1g5RPk2wy 8h99oLNAanTEHRh4+1buwyAP5gM0H1Utwaivyr+ZOQrXS5epgmRQz7QQZuhqLo7mtS8W Ylz6Pu7E0OfkrgfTCp3VvFsIYPK5rwSYlCRK07PhmHhGAjHgMkv4+zub+17o9CMpdAkF qMwoDhldUEofsCUp2xGdR3Ljbd1pvfZqpdXqYdgvpC/Om+KMvYvYPyDtOPKmkBHHpeOa 56HQ== 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=ujhZNbTIOkrYnMVAYJ+Mf0cQw92ly6+kxl9KusshuuE=; b=EhiZFYmp4KqKuMcKAiXgPbdpix6cwL/a+bO1gj6s1L99kscNIlGR8UHEDOHmIXpf6G PmY4ULc2/FlnsxR8Bihvu7s3cJE83piCgCsKZsT5BzbrMPXE1UnqSQUMaT0RMMd1waAK 8cWmfKMVhJJXQIa8yK3b43tJg5/9HOe/yozpjYW2DjEfpO7MwgzfZ8bKNVV7heJYszbv GwfNxMBZF4xnXtST0S5FbiaVreJ+n59sfOSGNsJOShd8u60T5ZDQl3/LWQQpTddz3QE1 hrrqvsQ/XNKERNtjo5GxMFUIOJClGsZJiHwkyIaW6hHNBjURvtM//xm7sh3nwH12fRNF HJ1w== X-Gm-Message-State: ALyK8tIW32svl6RqkMKn8glt2oR+81Yyq428SvQNiZIe7GNMKNVWnzcy0nufa5suNdOW9A== X-Received: by 10.55.99.23 with SMTP id x23mr64403014qkb.93.1469103710292; Thu, 21 Jul 2016 05:21:50 -0700 (PDT) Received: from localhost.localdomain ([177.32.209.20]) by smtp.gmail.com with ESMTPSA id s16sm4184164qke.14.2016.07.21.05.21.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jul 2016 05:21:49 -0700 (PDT) From: Sergio Prado To: buildroot@buildroot.org Date: Thu, 21 Jul 2016 09:20:56 -0300 Message-Id: <1469103656-22134-1-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] 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 --- 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..6d24258a6195 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