[FFmpeg-devel] [PATCH 1/2] configure: properly honor --valgrind option

Clément Bœsch u at pkh.me
Sun Apr 9 19:46:50 EEST 2017


Setting --valgrind implies the valgrind-memcheck toolchain. Before this
commit, the toolchain handling was overriding the target exec with an
arbitrary "valgrind" setting not taking into account the user setting.
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 8ad0bda76c..539a126656 100755
--- a/configure
+++ b/configure
@@ -3615,6 +3615,7 @@ case "$toolchain" in
     ;;
     valgrind-*)
         target_exec_default="valgrind"
+        test -n "$valgrind" && target_exec_default="$valgrind"
         case "$toolchain" in
             valgrind-massif)
                 target_exec_args="--tool=massif --alloc-fn=av_malloc --alloc-fn=av_mallocz --alloc-fn=av_calloc --alloc-fn=av_fast_padded_malloc --alloc-fn=av_fast_malloc --alloc-fn=av_realloc_f --alloc-fn=av_fast_realloc --alloc-fn=av_realloc"
-- 
2.12.2



More information about the ffmpeg-devel mailing list