@@ -3,11 +3,14 @@ include $(top_srcdir)/platform/@with_platform@/Makefile.inc
ABS_TEST_BUILDDIR = $(abs_top_builddir)/test/common_plat/validation/drv/drvinit
-noinst_LTLIBRARIES = libtestdrvinit.la
+lib_LTLIBRARIES =
+
+lib_LTLIBRARIES += libtestdrvinit.la
libtestdrvinit_la_SOURCES = drvinit.c
+libtestdrvinit_la_LDFLAGS = -dlopen empty_driver.la
#the minimalist driver:
-lib_LTLIBRARIES = empty_driver.la
+lib_LTLIBRARIES += empty_driver.la
empty_driver_la_SOURCES = empty_driver.c
empty_driver_la_LDFLAGS = $(AM_LDFLAGS) -module -shared -export-dynamic \
-avoid-version
@@ -18,7 +21,4 @@ test_PROGRAMS = drvinit_main$(EXEEXT)
drvinit_main_SOURCES = drvinit_main.c
drvinit_main_LDADD = libtestdrvinit.la $(LIBCUNIT_COMMON) $(LIBODP)
-drvinit_main_LDFLAGS = $(AM_LDFLAGS) \
- -rpath $(ABS_TEST_BUILDDIR)/.libs
-
EXTRA_DIST = drvinit.h