branch: development commit e606cd2358dd526d79837ce9f98da159c1d02bf7 Author: Manoj Gupta <manojgu...@chromium.org> AuthorDate: Wed Oct 10 10:50:23 2018 +0300
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 4b4ea721..8e0a46bc 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -7758,7 +7758,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" ||