summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libtool/libtool
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-01-26 13:41:59 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-27 13:05:17 +0000
commitecfe26834922861ab69602b8c1aa404080f0fb0c (patch)
tree5c272f52cf5f4324029c6bf82236bc93a8755102 /meta/recipes-devtools/libtool/libtool
parentf65022e40dc6c76fa2b7b334d2f9192e2eaacd0e (diff)
downloadpoky-ecfe26834922861ab69602b8c1aa404080f0fb0c.tar.gz
libtool: Fix ignoring compiler-rt libs
This is a limitation of libtool where it is not aware of compiler-rt being a compiler internal library, this patch fixes it (From OE-Core rev: ebc96f2f612ebc1b7aefb06935bb308fc2e40cfd) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool')
-rw-r--r--meta/recipes-devtools/libtool/libtool/0001-libtool-Check-for-static-libs-for-internal-compiler-.patch37
1 files changed, 37 insertions, 0 deletions
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 @@
1From 40a2da75e6d95cc7c498ebda95ab19ae0db2ebfb Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 26 Jan 2019 12:54:26 -0800
4Subject: [PATCH] libtool: Check for static libs for internal compiler
5 libraries
6
7Libtool checks only for libraries linked as -l* when trying to
8find internal compiler libraries. Clang, however uses the absolute
9path to link its internal libraries e.g. compiler_rt. This patch
10handles clang's statically linked libraries when finding internal
11compiler libraries.
12
13https://crbug.com/749263
14
15Upstream-Status: Submitted [https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866]
16
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 m4/libtool.m4 | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/m4/libtool.m4 b/m4/libtool.m4
23index d0389a0..9619c57 100644
24--- a/m4/libtool.m4
25+++ b/m4/libtool.m4
26@@ -7536,7 +7536,7 @@ if AC_TRY_EVAL(ac_compile); then
27 for p in `eval "$output_verbose_link_cmd"`; do
28 case $prev$p in
29
30- -L* | -R* | -l*)
31+ -L* | -R* | -l* | */libclang_rt.*.a)
32 # Some compilers place space between "-{L,R}" and the path.
33 # Remove the space.
34 if test x-L = "$p" ||
35--
362.20.1
37