Test: fix Makefile.am to work with 'out of source' build directory

* tests/Makefile.am:
   rpath must refer to the build directory, not the source directory.
This commit is contained in:
Benjamin Dauvergne 2009-09-11 15:51:50 +00:00
parent 5ce049c970
commit 54ede0b981
1 changed files with 3 additions and 3 deletions

View File

@ -16,19 +16,19 @@ tests_LDADD = \
$(top_builddir)/lasso/liblasso.la \
$(LASSO_LIBS) \
$(CHECK_LIBS)
tests_LDFLAGS = -rpath `cd $(top_srcdir)/lasso/.libs/; pwd`
tests_LDFLAGS = -rpath `cd $(top_builddir)/lasso/.libs/; pwd`
tests2_SOURCES = tests2.c
tests2_LDADD = \
$(top_builddir)/lasso/liblasso.la \
$(LASSO_LIBS) \
$(CHECK_LIBS)
tests2_LDFLAGS = -rpath `cd $(top_srcdir)/lasso/.libs/; pwd`
tests2_LDFLAGS = -rpath `cd $(top_builddir)/lasso/.libs/; pwd`
tests2_CFLAGS = -DSRCDIR=\"$(srcdir)\"
perfs_SOURCES = perfs.c
perfs_LDADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS)
perfs_LDFLAGS = -rpath `cd $(top_srcdir)/lasso/.libs/; pwd`
perfs_LDFLAGS = -rpath `cd $(top_builddir)/lasso/.libs/; pwd`
endif