On 12 April 2017 at 15:23, Bruno Haible <br...@clisp.org> wrote: > Hi Reuben, > > > This is a separate issue, though: the real problem here is that a way is > > needed to run libtool wrappers with libtool > > In GNU gettext, I never succeeded in making valgrind work with the libtool > wrappers; instead I noted > # You should build with --disable-shared when using valgrind. > > See [1], lines 170..199. > > Bruno > > [1] http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob; > f=gettext-tools/tests/Makefile.am >
This is not feasible for Enchant, which is based around dynamically-loaded libraries. However, I just used a one line shell script, called run-test: #!/bin/sh libtool --mode=execute $VALGRIND "$@" and then in Makefile.am: LOG_COMPILER = $(srcdir)/run-test It is working for me, and I'm happily fixing the bugs found by Valgrind. -- http://rrt.sc3d.org