diff --git a/configure b/configure index ca30d906bf..5a5cbc2cf2 100755 --- a/configure +++ b/configure @@ -2507,7 +2507,7 @@ case "$toolchain" in add_ldflags -fsanitize=thread -pie ;; valgrind-memcheck) - target_exec_default="valgrind" + target_exec_default=${valgrind:-"valgrind"} target_exec_args="--error-exitcode=1 --malloc-fill=0x2a --track-origins=yes --leak-check=full --gen-suppressions=all --suppressions=$source_path/tests/fate-valgrind.supp" ;; msvc)