]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
c151c3b4813c61eda424e0a543b6562e6c67cf16
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 From: Khem Raj <raj.khem@gmail.com>
2 Subject: [PATCH 08/12] libtool: Check for static libs for internal compiler libraries
3
4 Libtool checks only for libraries linked as -l* when trying to
5 find internal compiler libraries. Clang, however uses the absolute
6 path to link its internal libraries e.g. compiler_rt. This patch
7 handles clang's statically linked libraries when finding internal
8 compiler libraries.
9
10 Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12
13 https://crbug.com/749263
14 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866
15
16 Upstream-Status: Submitted [https://lists.gnu.org/archive/html/libtool-patches/2021-10/msg00016.html]
17
18 diff --git a/m4/libtool.m4 b/m4/libtool.m4
19 index bd90775..3794130 100644
20 --- a/m4/libtool.m4
21 +++ b/m4/libtool.m4
22 @@ -7556,7 +7556,7 @@ if AC_TRY_EVAL(ac_compile); then
23 for p in `eval "$output_verbose_link_cmd"`; do
24 case $prev$p in
25
26 - -L* | -R* | -l*)
27 + -L* | -R* | -l* | */libclang_rt.*.a)
28 # Some compilers place space between "-{L,R}" and the path.
29 # Remove the space.
30 if test x-L = "$p" ||
31 --
32 2.25.1
33