aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-05 16:21:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-05 16:21:57 +0200
commit54021aea57049a2e8e43886e6081ec3690d22fb5 (patch)
tree8b33fa20e743b51a6a016f83ec4d5e509b382ed6
parentb37cc5995b88ec68a68cb8e496a008e1cd467077 (diff)
downloadffmpeg-54021aea57049a2e8e43886e6081ec3690d22fb5.tar.gz
configure: set valgrind-memcheck toolchain when --valgrind is specified
This avoids duplicating the default command line arguments Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 330a3b7ebe..ca30d906bf 100755
--- a/configure
+++ b/configure
@@ -2493,6 +2493,8 @@ strip_default="${cross_prefix}${strip_default}"
sysinclude_default="${sysroot}/usr/include"
+test -n "$valgrind" && toolchain="valgrind-memcheck"
+
case "$toolchain" in
clang-asan)
cc_default="clang"
@@ -4166,7 +4168,6 @@ enabled vdpau &&
disabled iconv || check_func_headers iconv.h iconv || check_lib2 iconv.h iconv -liconv || disable iconv
enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
-test -n "$valgrind" && target_exec="$valgrind --error-exitcode=1 --malloc-fill=0x2a --track-origins=yes --leak-check=full --gen-suppressions=all --suppressions=$source_path/tests/fate-valgrind.supp"
# add some useful compiler flags if supported
check_cflags -Wdeclaration-after-statement