contrib: nfs: update to 4.0.0
[vlc.git] / extras / tools / libtool-2.4.6-clang-libs.patch
blob8e2a258918a8cc87dec27c4a73b5bd0f0ffc0cb9
1 Libtool checks only for libraries linked as -l* when trying to
2 find internal compiler libraries. Clang, however uses the absolute
3 path to link its internal libraries e.g. compiler_rt. This patch
4 handles clang's statically linked libraries when finding internal
5 compiler libraries.
6 https://crbug.com/749263
7 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866
9 --- libtool-2.4.6/m4/libtool.m4 2015-01-20 17:15:19.000000000 +0100
10 +++ libtool-2.4.6/m4/libtool.m4.clang 2019-03-06 17:27:40.620395700 +0100
11 @@ -7531,7 +7531,7 @@
12 for p in `eval "$output_verbose_link_cmd"`; do
13 case $prev$p in
15 - -L* | -R* | -l*)
16 + -L* | -R* | -l* | */libclang_rt.*.a)
17 # Some compilers place space between "-{L,R}" and the path.
18 # Remove the space.
19 if test x-L = "$p" ||