30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From fc658ffc5fed2dfbf35a85f8e60742f63b7cf203 Mon Sep 17 00:00:00 2001
|
|
From: Manoj Gupta <manojgupta@chromium.org>
|
|
Date: Wed, 10 Oct 2018 10:50:23 +0300
|
|
Subject: [PATCH] Pick up clang_rt static archives compiler internal 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
|
|
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866
|
|
---
|
|
m4/libtool.m4 | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/m4/libtool.m4 b/m4/libtool.m4
|
|
index 93a54713..2457eec5 100644
|
|
--- a/m4/libtool.m4
|
|
+++ b/m4/libtool.m4
|
|
@@ -7601,7 +7601,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,l}" and the path.
|
|
# Remove the space.
|
|
if test x-L = x"$p" ||
|