--- jq-1.7.1.orig/tests/setup
+++ jq-1.7.1/tests/setup
@@ -13,7 +13,7 @@
 JQ=${JQ:-$JQBASEDIR/jq}
 
 if [ -z "${NO_VALGRIND-}" ] && which valgrind > /dev/null; then
-    VALGRIND="libtool --mode=execute -- valgrind --error-exitcode=1 --leak-check=full \
+    VALGRIND="$JQBASEDIR/libtool --mode=execute -- valgrind --error-exitcode=1 --leak-check=full \
                        --suppressions=$JQTESTDIR/onig.supp \
                        --suppressions=$JQTESTDIR/local.supp"
     VG_EXIT0=--error-exitcode=0
