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
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
12 Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
15 https://crbug.com/749263
16 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866
18 Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00016.html]
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 diff --git a/m4/libtool.m4 b/m4/libtool.m4
24 index d0389a0..9619c57 100644
27 @@ -7536,7 +7536,7 @@ if AC_TRY_EVAL(ac_compile); then
28 for p in `eval "$output_verbose_link_cmd"`; do
32 + -L* | -R* | -l* | */libclang_rt.*.a)
33 # Some compilers place space between "-{L,R}" and the path.