decoder: fix data race
[vlc.git] / extras / tools / libtool-2.4.6-san.patch
blobc70154b5eec100efb83af9cfd0a095b5afba38d7
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 --- libtool-2.4.6/build-aux/ltmain.in.orig 2019-03-06 17:24:29.400776100 +0100
16 +++ libtool-2.4.6/build-aux/ltmain.in 2019-03-06 17:26:31.994381100 +0100
17 @@ -5361,9 +5361,10 @@
18 # --sysroot=* for sysroot support
19 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
20 # -stdlib=* select c++ std lib with clang
21 + # -fsanitize=* Clang/GCC memory and address sanitizer
22 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
23 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
24 - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
25 + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*|-fsanitize=*)
26 func_quote_for_eval "$arg"
27 arg=$func_quote_for_eval_result
28 func_append compile_command " $arg"
29 --- libtool-2.4.6/build-aux/ltmain.sh.orig 2019-03-06 17:25:38.610781500 +0100
30 +++ libtool-2.4.6/build-aux/ltmain.sh 2019-03-06 17:26:53.790387700 +0100
31 @@ -7273,9 +7273,10 @@
32 # --sysroot=* for sysroot support
33 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
34 # -stdlib=* select c++ std lib with clang
35 + # -fsanitize=* Clang/GCC memory and address sanitizer
36 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
37 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
38 - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
39 + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*|-fsanitize=*)
40 func_quote_for_eval "$arg"
41 arg=$func_quote_for_eval_result
42 func_append compile_command " $arg"