From patchwork Tue Oct 9 19:24:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 981496 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="V1ZufjE8"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42V6cV74Cfz9s3T for ; Wed, 10 Oct 2018 06:24:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EBA54878D9; Tue, 9 Oct 2018 19:24:38 +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 F5O87wziMOlN; Tue, 9 Oct 2018 19:24:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E9315878E5; Tue, 9 Oct 2018 19:24:35 +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 E2F871BF48E for ; Tue, 9 Oct 2018 19:24:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DF2288433E for ; Tue, 9 Oct 2018 19:24:34 +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 loGBiIqspQiK for ; Tue, 9 Oct 2018 19:24:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (smtprelay4.synopsys.com [198.182.47.9]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2FAA286501 for ; Tue, 9 Oct 2018 19:24:34 +0000 (UTC) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 4463724E13F4; Tue, 9 Oct 2018 12:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1539113073; bh=oa3jEGTdx3iRjnGrs/mhs4RLsqSo96FsfJ93k1JKm4o=; h=From:To:Cc:Subject:Date:From; b=V1ZufjE8SLr0klBaEVmNQN8tcYJOQ3T9FRlkMsMcHT0fc77JRxe91lJCyqd467xo9 u/1uDep4oVoj0mcljUPZYIBIscpnBHRA35Tqh2dKyAcFQNon8KfXg3AvQsg4tXY7gl JM9US0u18Hhi33YqPqThw87XTBrYWEFa66ODRiG8XvyW6NJTSoK8pdDVW+suhLa9/T twXos/tilH7xme4DS4cnpnK8JAJfbCRRC+YHaioPdbaoqRmnfDi8ZpNqhj+D4F8sr9 X/Z+z63s9HtC0TGr+5q+Ja8wF1waqvWWNlcE31mRL6clBndDg2uiFEdz3mGHfHlMok QIBSW1RCb8LWA== Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id BD9D0592A; Tue, 9 Oct 2018 12:24:30 -0700 (PDT) From: Alexey Brodkin To: buildroot@busybox.net Date: Tue, 9 Oct 2018 22:24:22 +0300 Message-Id: <20181009192422.20809-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.16.2 Subject: [Buildroot] [PATCH] meson: Use AR via wrapper X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Le Bihan , ARC Buildroot mailing list , Mark Corbin , Alexey Brodkin , Peter Seiderer , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" If building with LTO enabled we need to use GCC wrapper for AR otherwise archives get created improperly and we see a lot of unresolved symbols on finla linkage. In particular this allows to build SystemD with LTO. Signed-off-by: Alexey Brodkin Cc: Thomas Petazzoni Cc: Eric Le Bihan Cc: Mark Corbin Cc: Peter Korsgaard Cc: Peter Seiderer Reviewed-by: "Yann E. MORIN" --- package/meson/cross-compilation.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/meson/cross-compilation.conf.in b/package/meson/cross-compilation.conf.in index 0eec74087b..de4600cc58 100644 --- a/package/meson/cross-compilation.conf.in +++ b/package/meson/cross-compilation.conf.in @@ -6,7 +6,7 @@ [binaries] c = '@TARGET_CROSS@gcc' cpp = '@TARGET_CROSS@g++' -ar = '@TARGET_CROSS@ar' +ar = '@TARGET_CROSS@gcc-ar' strip = '@TARGET_CROSS@strip' pkgconfig = '@HOST_DIR@/usr/bin/pkg-config'