tests: use -no-install libtool flag to avoid ./lt-* scripts

This ensures that the rpath of the generated binaries is set to use only
the just-compiled so-files and not any system-wide installed libraries
while avoiding the ugly shell script wrapper.

Change-Id: I927561289b17b313d52fb5c1da55e237fc1d33be
diff --git a/tests/db/Makefile.am b/tests/db/Makefile.am
index d5fce65..afda5be 100644
--- a/tests/db/Makefile.am
+++ b/tests/db/Makefile.am
@@ -10,6 +10,10 @@
 	$(SQLITE3_CFLAGS) \
 	$(NULL)
 
+AM_LDFLAGS = \
+	-no-install \
+	$(NULL)
+
 EXTRA_DIST = \
 	db_test.ok \
 	db_test.err \