mirror of
https://git.yoctoproject.org/poky
synced 2026-02-23 18:09:40 +01:00
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>
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 40a2da75e6d95cc7c498ebda95ab19ae0db2ebfb Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
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 <raj.khem@gmail.com>
|
|
---
|
|
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
|
|
|