From patchwork Sat Jan 26 21:41:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 156682 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1838681jaa; Sat, 26 Jan 2019 13:42:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN6W01C0mF7DKQlACfHdMRRETZr8w0wtJLSFE9oHEib5K2n5tuCjXBxkEsqb9tm0KhyYodhZ X-Received: by 2002:a62:9419:: with SMTP id m25mr16965424pfe.147.1548538938918; Sat, 26 Jan 2019 13:42:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548538938; cv=none; d=google.com; s=arc-20160816; b=RJYQJI12p5Hb7bFX/BAHEWyTxrmKnHvOMC3DNNpYFoLzJDEabQVQBWMZbwvrA7ePPQ bJIKuAg9umHA6y8TYFyfoRp/5HKykwFZ2elCOHLAruNMVVsO26qtC1QaD14ySwwQ9F/h jI3gQjTgtyVbovbV39zRkTUFiEUNC2/LLlKdsXTURsqOIlaDhfNp/wNlBzeLKlPMFgTw WvwY/2jYunNqKT8g0V5NE7kvvco7hIVJTMB8ZErQha8qHJ0MSlveeT+qnVwj8WxP9p8H lpmj9kUkiY6ZHhJFfHb/Oos+n4eVTsLvqgR0qM+R5WsDX4r9git/IzvOghWvsVdhcc7n TNjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=pA04X0eeZ1+WZe8YIDMj+SNT4NFNO4PcoNkV/nDvn1M=; b=kmzbdhLttYPeNRioF12Rv9/mpX76LQIV+jmlfTE5H0iQZ8lrK61EhCX5fkol0+mY+K fiwUV6o3UOs/aHuuKJTnOhn4PFPomU2O/Ly/a6kaUYP5A/7koeBXXd60so4dGF5n1KqG zc3i5yS3jE4iRAJPJxsFeBjqX98Y0CkHOKCgLcy+l/IqcN1u0sZRVXTZHttB6SXHzNdB U28+GuyaDoyhOxaExUDT82l036xkbXu9EeitZ6eO9OwrYEZjEctEVcyg0DgsFzJyFzHR 9gjVGoycl6lOY+VDcmwqRkcv0mMSBW9KE8f9xu5c+GelTHlpVRVIZcuktYMA+o0I0TSe FcjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=qLp1s2sZ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 127si13128477pfg.173.2019.01.26.13.42.18; Sat, 26 Jan 2019 13:42:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=qLp1s2sZ; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id D472F7C44A; Sat, 26 Jan 2019 21:42:13 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id C10407C2E1 for ; Sat, 26 Jan 2019 21:42:11 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id w73so6251644pfk.10 for ; Sat, 26 Jan 2019 13:42:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M3jJjabcAZe3cjkZ0Iw3IV8SDCHlgz76mBDA9W9/NmM=; b=qLp1s2sZ+4DPabnWHNIIrUN+xqEa1x3tVmEc363S7szXGRskYgfDiy2g5CRic6I7Gd XaRxeXQNO4WMlVcJXPo9BADVvgBrcVE31p9jS6jPYnVOndVFDkuw+6rd0laJzHd/0wo1 5EKO4xFZqASSwahfCSrD7UWE74xjljxD/9PyVTv4umQ3VQE6ChcFYSxkhM8J/AnUqFK/ oqcMP5hDsLU2Tk0l4xO/Ab9xjKZXNFW6VX2Oyx8msW+Eq9+FnXyUU49R/erJv/wLrbBV D1s4of4QIx58RxKonj3whlnGDdgPL6Yhh1ZPkDFwCcjjCM9X/Wsv1uKNJW3DxufiR+4p wgCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M3jJjabcAZe3cjkZ0Iw3IV8SDCHlgz76mBDA9W9/NmM=; b=GUQHM3KiwWmOphqbLpdpYwQt+9NhDmMAI6P4AcJ65zTIQTzpZ964z2LN6VZuysWQzt gm1RyFZ66Mxmx9lYlqTjofZT/21OBiPE8kc3Epw18PDMZst8AoTw0FvFb+DexDmq3UEE MHub0jS0GvSc/TyxcoQmYr0fjdY/5ZJ+TLjOwKZGID6KbVeLGuBSNRGLmNqler+h8y2e yjy99puG7KwBmux8gDMyWUV65AhAEH09REa8LroiPM7GJcTNMqK706DPrqviYxzI4byM kRbpg88oW+gQSEPgbP4dDFqMus5/XiLIGsHckdq4+sa+Bf5T5Mal7vB4j3hrnqsBER4q 8tdg== X-Gm-Message-State: AJcUukdsGG1l0e5qYnMrp/pRpOofxAEA/R2j12T5nlfGgFuhcpNhKNTP BToG2kY6I1zksVvsbIqXu1jN2oj93hU= X-Received: by 2002:a63:2b01:: with SMTP id r1mr14507168pgr.432.1548538931987; Sat, 26 Jan 2019 13:42:11 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::26b6]) by smtp.gmail.com with ESMTPSA id e24sm34832472pfi.153.2019.01.26.13.42.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Jan 2019 13:42:11 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 26 Jan 2019 13:41:59 -0800 Message-Id: <20190126214159.38217-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH] libtool: Fix ignoring compiler-rt libs X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This is a limitation of libtool where it is not aware of compiler-rt being a compiler internal library, this patch fixes it Signed-off-by: Khem Raj --- .../libtool/libtool-2.4.6.inc | 1 + ...r-static-libs-for-internal-compiler-.patch | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 meta/recipes-devtools/libtool/libtool/0001-libtool-Check-for-static-libs-for-internal-compiler-.patch -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/libtool/libtool-2.4.6.inc b/meta/recipes-devtools/libtool/libtool-2.4.6.inc index f307a10751..8e17b56d46 100644 --- a/meta/recipes-devtools/libtool/libtool-2.4.6.inc +++ b/meta/recipes-devtools/libtool/libtool-2.4.6.inc @@ -20,6 +20,7 @@ SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ file://nohardcodepaths.patch \ file://unwind-opt-parsing.patch \ file://0001-libtool-Fix-support-for-NIOS2-processor.patch \ + file://0001-libtool-Check-for-static-libs-for-internal-compiler-.patch \ " SRC_URI[md5sum] = "addf44b646ddb4e3919805aa88fa7c5e" diff --git a/meta/recipes-devtools/libtool/libtool/0001-libtool-Check-for-static-libs-for-internal-compiler-.patch b/meta/recipes-devtools/libtool/libtool/0001-libtool-Check-for-static-libs-for-internal-compiler-.patch new file mode 100644 index 0000000000..8c7c39feb6 --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool/0001-libtool-Check-for-static-libs-for-internal-compiler-.patch @@ -0,0 +1,37 @@ +From 40a2da75e6d95cc7c498ebda95ab19ae0db2ebfb Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 26 Jan 2019 12:54:26 -0800 +Subject: [PATCH] libtool: Check for static libs for internal compiler + libraries + +Libtool checks only for libraries linked as -l* when trying to +find internal compiler libraries. Clang, however uses the absolute +path to link its internal libraries e.g. compiler_rt. This patch +handles clang's statically linked libraries when finding internal +compiler libraries. + +https://crbug.com/749263 + +Upstream-Status: Submitted [https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866] + +Signed-off-by: Khem Raj +--- + m4/libtool.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/m4/libtool.m4 b/m4/libtool.m4 +index d0389a0..9619c57 100644 +--- a/m4/libtool.m4 ++++ b/m4/libtool.m4 +@@ -7536,7 +7536,7 @@ if AC_TRY_EVAL(ac_compile); then + for p in `eval "$output_verbose_link_cmd"`; do + case $prev$p in + +- -L* | -R* | -l*) ++ -L* | -R* | -l* | */libclang_rt.*.a) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test x-L = "$p" || +-- +2.20.1 +