diff options
Diffstat (limited to 'meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch')
-rw-r--r-- | meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch b/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch new file mode 100644 index 0000000000..afffdb9fd4 --- /dev/null +++ b/meta/recipes-devtools/libtool/libtool/0008-libtool-Check-for-static-libs-for-internal-compiler-.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From b9993338080325a6e2b2ec94ca0ece80e7fa3fb6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 26 Jan 2019 12:54:26 -0800 | ||
4 | Subject: [PATCH 08/12] libtool: Check for static libs for internal compiler libraries | ||
5 | |||
6 | Libtool checks only for libraries linked as -l* when trying to | ||
7 | find internal compiler libraries. Clang, however uses the absolute | ||
8 | path to link its internal libraries e.g. compiler_rt. This patch | ||
9 | handles clang's statically linked libraries when finding internal | ||
10 | compiler libraries. | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
14 | |||
15 | https://crbug.com/749263 | ||
16 | https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866 | ||
17 | |||
18 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00016.html] | ||
19 | --- | ||
20 | m4/libtool.m4 | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/m4/libtool.m4 b/m4/libtool.m4 | ||
24 | index d0389a0..9619c57 100644 | ||
25 | --- a/m4/libtool.m4 | ||
26 | +++ b/m4/libtool.m4 | ||
27 | @@ -7536,7 +7536,7 @@ if AC_TRY_EVAL(ac_compile); then | ||
28 | for p in `eval "$output_verbose_link_cmd"`; do | ||
29 | case $prev$p in | ||
30 | |||
31 | - -L* | -R* | -l*) | ||
32 | + -L* | -R* | -l* | */libclang_rt.*.a) | ||
33 | # Some compilers place space between "-{L,R}" and the path. | ||
34 | # Remove the space. | ||
35 | if test x-L = "$p" || | ||
36 | -- | ||
37 | 2.20.1 | ||
38 | |||