Notably, though, the dejagnu tests will not include valgrind.
* pre.in (MAYBE_VALGRIND): New variable.
* shlib.conf (*-*-linux*): Use it in RUN_ENV.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17742
dc483132-0cff-0310-8789-
dd5450dbe970
+2006-03-15 Ken Raeburn <raeburn@mit.edu>
+
+ * pre.in (MAYBE_VALGRIND): New variable.
+ * shlib.conf (*-*-linux*): Use it in RUN_ENV.
+
2006-03-11 Ken Raeburn <raeburn@mit.edu>
* pre.in (KRB_INCLUDES): Drop include/krb5 directories.
# platform-dependent temporary files that should get cleaned up
EXTRA_FILES=@EXTRA_FILES@
-
+# The "env" at the end is because sometimes we add local environment
+# variable settings with "@RUN_ENV@ KRB5_CONFIG=foo ..."
+MAYBE_VALGRIND= # valgrind --tool=memcheck --log-file=$(BUILDTOP)/valgrind.out --trace-children=yes -v --leak-check=yes env
##
## end of pre.in
RPATH_FLAG='-Wl,-rpath -Wl,'
CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(RPATH_FLAG)$(PROG_RPATH) $(CFLAGS) $(LDFLAGS)'
CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) $(CFLAGS) $(LDFLAGS)'
- RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
+ RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH; $(MAYBE_VALGRIND)'
## old version:
# Linux libc does weird stuff at shlib link time, must be