From patchwork Sun Aug 28 10:06:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 663349 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 3sMVnN0W5pz9sDk for ; Sun, 28 Aug 2016 20:07:01 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6EAB8882D6; Sun, 28 Aug 2016 10:06: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 soBVDdvyz6Ui; Sun, 28 Aug 2016 10:06:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C8D23882DA; Sun, 28 Aug 2016 10:06:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 177491C1569 for ; Sun, 28 Aug 2016 10:06:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 12D87882DA for ; Sun, 28 Aug 2016 10:06:56 +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 KeY-Rs_wt3l3 for ; Sun, 28 Aug 2016 10:06:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) by fraxinus.osuosl.org (Postfix) with ESMTPS id C6F99882D6 for ; Sun, 28 Aug 2016 10:06:54 +0000 (UTC) Received: from fwd16.aul.t-online.de (fwd16.aul.t-online.de [172.20.26.243]) by mailout10.t-online.de (Postfix) with SMTP id AE21141E7899 for ; Sun, 28 Aug 2016 12:06:51 +0200 (CEST) Received: from fli4l.lan.fli4l (T5M0hsZSoheZNIOc4e7VkDsFMRMSF+F1XRP1ymQBVQEAGdzZuzena6-20v8DzTsZI6@[84.191.193.135]) by fwd16.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1bdwzG-3tTPlI0; Sun, 28 Aug 2016 12:06:46 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:57844 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.87) (envelope-from ) id 1bdwzF-0001vk-SQ; Sun, 28 Aug 2016 12:06:46 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 28 Aug 2016 12:06:45 +0200 Message-Id: <20160828100645.12137-1-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.9.3 X-ID: T5M0hsZSoheZNIOc4e7VkDsFMRMSF+F1XRP1ymQBVQEAGdzZuzena6-20v8DzTsZI6 X-TOI-MSGID: 5d95d8cf-9626-4870-a812-2575836f3fb0 Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 1/1] package/libarchive: fix static linking against libpthread 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" Fixes http://autobuild.buildroot.net/results/e94/e943ee5abc06b1812d7b34976e3a807859958935/ Signed-off-by: Bernd Kuhls --- package/libarchive/libarchive.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/libarchive/libarchive.mk b/package/libarchive/libarchive.mk index bcf92f9..11425fd 100644 --- a/package/libarchive/libarchive.mk +++ b/package/libarchive/libarchive.mk @@ -110,6 +110,11 @@ else LIBARCHIVE_CONF_OPTS += --without-lzma endif +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +# forgets to link with -pthread breaking static link +LIBARCHIVE_CONF_ENV = LDFLAGS="$(TARGET_LDFLAGS) -pthread" +endif + # The only user of host-libarchive needs zlib support HOST_LIBARCHIVE_DEPENDENCIES = host-zlib HOST_LIBARCHIVE_CONF_OPTS = \