0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch (1111B)
1 From a18473ed4e5574dab899db640b8efeff78939b54 Mon Sep 17 00:00:00 2001 2 From: Manoj Gupta <manojgupta@chromium.org> 3 Date: Wed, 10 Oct 2018 10:50:23 +0300 4 Subject: [PATCH 1/2] Pick up clang_rt static archives compiler internal 5 libraries 6 7 Libtool checks only for libraries linked as -l* when trying to 8 find internal compiler libraries. Clang, however uses the absolute 9 path to link its internal libraries e.g. compiler_rt. This patch 10 handles clang's statically linked libraries when finding internal 11 compiler libraries. 12 https://crbug.com/749263 13 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866 14 --- 15 m4/libtool.m4 | 2 +- 16 1 file changed, 1 insertion(+), 1 deletion(-) 17 18 diff --git a/m4/libtool.m4 b/m4/libtool.m4 19 index 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 -- 32 2.7.4 33