0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. Libtool checks only for libraries linked as -l* when trying to
  7. find internal compiler libraries. Clang, however uses the absolute
  8. path to link its internal libraries e.g. compiler_rt. This patch
  9. handles clang's statically linked libraries when finding internal
  10. compiler libraries.
  11. https://crbug.com/749263
  12. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866
  13. ---
  14. m4/libtool.m4 | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/m4/libtool.m4 b/m4/libtool.m4
  17. index b55a6e5..d9322d0 100644
  18. --- a/m4/libtool.m4
  19. +++ b/m4/libtool.m4
  20. @@ -7556,7 +7556,7 @@ if AC_TRY_EVAL(ac_compile); then
  21. for p in `eval "$output_verbose_link_cmd"`; do
  22. case $prev$p in
  23. - -L* | -R* | -l*)
  24. + -L* | -R* | -l* | */libclang_rt.*.a)
  25. # Some compilers place space between "-{L,R}" and the path.
  26. # Remove the space.
  27. if test x-L = "$p" ||
  28. --
  29. 2.7.4