playlist demuxer: remove tabs
[vlc.git] / extras / tools / libtool-2.4.2-san.patch
blob4f833aac6043b345f7e895d3fb6deb293f7a7839
1 From a5c6466528c060cc4660ad0319c00740db0e42ba Mon Sep 17 00:00:00 2001
2 From: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
3 Date: Sun, 18 Oct 2015 21:55:39 -0700
4 Subject: libtool: fix GCC/clang linking with -fsanitize=*
6 References:
7 https://lists.gnu.org/archive/html/libtool/2014-04/msg00026.html
9 * build-aux/ltmain.in (func_mode_link): Pass -fsanitize=* to the
10 linker to allow trivial use of the clang address sanitizer.
12 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
13 Copyright-paperwork-exempt: Yes
14 ---
15 diff -ru libtool/libltdl/config/ltmain.m4sh libtool-fixed/libltdl/config/ltmain.m4sh
16 --- libtool/libltdl/config/ltmain.m4sh 2017-10-16 08:20:47.000000000 +0200
17 +++ libtool-fixed/libltdl/config/ltmain.m4sh 2017-10-16 08:22:23.000000000 +0200
18 @@ -5064,9 +5064,10 @@
19 # -tp=* Portland pgcc target processor selection
20 # --sysroot=* for sysroot support
21 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
22 + # -fsanitize=* Clang/GCC memory and address sanitizer
23 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
24 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
25 - -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
26 + -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fsanitize=*)
27 func_quote_for_eval "$arg"
28 arg="$func_quote_for_eval_result"
29 func_append compile_command " $arg"
30 diff -ru libtool/libltdl/config/ltmain.sh libtool-fixed/libltdl/config/ltmain.sh
31 --- libtool/libltdl/config/ltmain.sh 2017-10-16 08:20:47.000000000 +0200
32 +++ libtool-fixed/libltdl/config/ltmain.sh 2017-10-16 08:22:58.000000000 +0200
33 @@ -5851,9 +5851,10 @@
34 # -tp=* Portland pgcc target processor selection
35 # --sysroot=* for sysroot support
36 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
37 + # -fsanitize=* Clang/GCC memory and address sanitizer
38 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
39 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
40 - -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
41 + -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fsanitize=*)
42 func_quote_for_eval "$arg"
43 arg="$func_quote_for_eval_result"
44 func_append compile_command " $arg"