aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-05-14 22:41:14 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-05-28 17:22:16 +0200
commit0ba49d28a1c58e1fc16c0406617a3bfc99c322dd (patch)
tree95ee8d78c9e4ea6e108218863bf73db3a18c1b64
parentba13606ca6adbc74b4db4a72b0769397d6408791 (diff)
downloadffmpeg-0ba49d28a1c58e1fc16c0406617a3bfc99c322dd.tar.gz
configure: support gcc-4.8 instrumentation
Since version 4.8 gcc sports asan and tsan integration that can be leveraged when hunting bugs. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 616e4bd719..e890c155e9 100755
--- a/configure
+++ b/configure
@@ -2214,6 +2214,16 @@ case "$toolchain" in
add_cflags -fsanitize=thread -pie
add_ldflags -fsanitize=thread -pie
;;
+ gcc-asan)
+ cc_default="gcc"
+ add_cflags -fsanitize=address
+ add_ldflags -fsanitize=address
+ ;;
+ gcc-tsan)
+ cc_default="gcc"
+ add_cflags -fsanitize=thread -pie -fPIC
+ add_ldflags -fsanitize=thread -pie -fPIC
+ ;;
valgrind-massif)
target_exec_default="valgrind"
target_exec_args="--alloc-fn=av_malloc --alloc-fn=av_mallocz"