I'm actually building the tests inside a test directory: $(top_srcdir)/tests, and the library I'm trying to link to is under $(top_srcdir)/yafeq. So if I remove the $(top_srcdir) then it doesn't work anymore.
So the only way I made it work so far is using LDADD = $(top_srcdir)/yafeq/libyafeq.la I mean, the tests are built fine if I add this line to the $(top_srcdir)/tests/Makefile.am. Alejandro Peter Johansson-7 wrote: > > Bob Friesenhahn wrote: >> It is not necessary to specify top_builddir because that is where the >> Makefile is written and the directory where the build is performed. As >> you say, specifying $(top_srcdir) may cause harm since it is likely to >> break VPATH builds. >> > Sorry, I thought we were dealing with a Makefile.am in a subdir, in > other words, a Makefile.am for which top_builddir does not equal `.'. > > Thanks, > Peter > > > > -- View this message in context: http://www.nabble.com/running-tests-under-in-a-tests--directory-tp23773808p23954989.html Sent from the Gnu - Automake - General mailing list archive at Nabble.com.