diff --git a/cf/Makefile.am.common b/cf/Makefile.am.common index fe20975a8..670268cbb 100644 --- a/cf/Makefile.am.common +++ b/cf/Makefile.am.common @@ -239,7 +239,8 @@ endif # check-valgrind: - env TESTS_ENVIRONMENT="$(top_builddir)/libtool --mode execute valgrind --leak-check=full --trace-children=yes --quiet -q --num-callers=30 --suppressions=$(top_srcdir)/cf/valgrind-suppressions" make check + topdir=`cd $(top_builddir) && pwd` ; \ + env TESTS_ENVIRONMENT="${topdir}/libtool --mode execute valgrind --leak-check=full --trace-children=yes --quiet -q --num-callers=30 --suppressions=$(top_srcdir)/cf/valgrind-suppressions" make check # # Target to please samba build farm, builds distfiles in-tree.