Define VALGRIND1 as an invocation of valgrind that could be used for VALGRIND
authorKen Raeburn <raeburn@mit.edu>
Sun, 15 Oct 2006 08:35:09 +0000 (08:35 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 15 Oct 2006 08:35:09 +0000 (08:35 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18708 dc483132-0cff-0310-8789-dd5450dbe970

src/config/pre.in

index 2c4c0298dea4eee89d86ca363d91d97e7abc62b4..b99fa7d34484d0da12db91db2ff0b61e5031f445 100644 (file)
@@ -550,7 +550,11 @@ PROFFLAGS=@PROFFLAGS@
 # platform-dependent temporary files that should get cleaned up
 EXTRA_FILES=@EXTRA_FILES@
 
-VALGRIND= # valgrind --tool=memcheck --log-file=$(BUILDTOP)/valgrind.out --trace-children=yes -v --leak-check=yes
+VALGRIND=
+# Need absolute paths here because under kshd or ftpd we may run programs
+# while in other directories.
+VALGRIND_LOGDIR = `cd $(BUILDTOP)&&pwd`
+VALGRIND1 = valgrind --tool=memcheck --log-file=$(SAMPLE_VALGRIND_LOGDIR)/vg --trace-children=yes -v --leak-check=yes --suppressions=`cd $(SRCTOP)&&pwd`/util/valgrind-suppressions
 
 #
 AUTOCONF_HEADER=$(SRCTOP)/include/autoconf.h.in