diff --git a/configure b/configure index 9d6ce4f58a..6fe79454c4 100755 --- a/configure +++ b/configure @@ -2516,7 +2516,7 @@ case "$toolchain" in add_ldflags -fsanitize=thread -pie ;; valgrind-massif) - target_exec_default="valgrind" + target_exec_default=${valgrind:-"valgrind"} target_exec_args="--tool=massif --alloc-fn=av_malloc --alloc-fn=av_mallocz" ;; valgrind-memcheck)