aboutsummaryrefslogtreecommitdiff
path: root/contrib/autotools-patches/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/autotools-patches/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch')
-rw-r--r--contrib/autotools-patches/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/autotools-patches/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch b/contrib/autotools-patches/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch
new file mode 100644
index 00000000..49cc0706
--- /dev/null
+++ b/contrib/autotools-patches/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch
@@ -0,0 +1,33 @@
1From a18473ed4e5574dab899db640b8efeff78939b54 Mon Sep 17 00:00:00 2001
2From: Manoj Gupta <manojgupta@chromium.org>
3Date: Wed, 10 Oct 2018 10:50:23 +0300
4Subject: [PATCH 1/2] Pick up clang_rt static archives compiler internal
5 libraries
6
7Libtool checks only for libraries linked as -l* when trying to
8find internal compiler libraries. Clang, however uses the absolute
9path to link its internal libraries e.g. compiler_rt. This patch
10handles clang's statically linked libraries when finding internal
11compiler libraries.
12https://crbug.com/749263
13https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866
14---
15 m4/libtool.m4 | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/m4/libtool.m4 b/m4/libtool.m4
19index b55a6e5..d9322d0 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--
322.7.4
33