summarylogtreecommitdiffstats
path: root/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch
diff options
context:
space:
mode:
authorAndrew Sun2019-09-15 12:49:23 -0400
committerAndrew Sun2019-09-15 12:49:23 -0400
commit86f90c3e0ab2b787f87acac05f6b455b251fa35f (patch)
treed10064c9c63beafa0c48e49d657cbf73e90271c7 /0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch
parentfd0c9b58c5307856b113ca7d0fbfec6eb8783568 (diff)
downloadaur-86f90c3e0ab2b787f87acac05f6b455b251fa35f.tar.gz
mingw-w64-libtool: update to 2.4.6+42+gb88cebd5
Diffstat (limited to '0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch')
-rw-r--r--0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch b/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch
new file mode 100644
index 000000000000..49cc0706551c
--- /dev/null
+++ b/0011-Pick-up-clang_rt-static-archives-compiler-internal-l.patch
@@ -0,0 +1,33 @@
+From a18473ed4e5574dab899db640b8efeff78939b54 Mon Sep 17 00:00:00 2001
+From: Manoj Gupta <manojgupta@chromium.org>
+Date: Wed, 10 Oct 2018 10:50:23 +0300
+Subject: [PATCH 1/2] 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 b55a6e5..d9322d0 100644
+--- a/m4/libtool.m4
++++ b/m4/libtool.m4
+@@ -7556,7 +7556,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}" and the path.
+ # Remove the space.
+ if test x-L = "$p" ||
+--
+2.7.4
+