[FFmpeg-cvslog] clang: use -fsantize=address and -fsanitize=thread
Luca Barbato
git at videolan.org
Thu Apr 4 12:46:00 CEST 2013
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Thu Mar 28 03:30:53 2013 +0100| [19f251a2882a8d0779b432e63bf282e4d9c443bb] | committer: Luca Barbato
clang: use -fsantize=address and -fsanitize=thread
The previous syntax is deprecated.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19f251a2882a8d0779b432e63bf282e4d9c443bb
---
configure | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index 46635ce..10246e5 100755
--- a/configure
+++ b/configure
@@ -2158,13 +2158,13 @@ sysinclude_default="${sysroot}/usr/include"
case "$toolchain" in
clang-asan)
cc_default="clang"
- add_cflags -faddress-sanitizer
- add_ldflags -faddress-sanitizer
+ add_cflags -fsanitize=address
+ add_ldflags -fsanitize=address
;;
clang-tsan)
cc_default="clang"
- add_cflags -fthread-sanitizer
- add_ldflags -fthread-sanitizer
+ add_cflags -fsanitize=thread -pie
+ add_ldflags -fsanitize=thread -pie
;;
msvc)
cc_default="c99wrap cl"
More information about the ffmpeg-cvslog
mailing list