build: Link session unit test with dynamic loader library
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 6 Oct 2011 19:22:39 +0000 (12:22 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 6 Oct 2011 19:22:39 +0000 (12:22 -0700)
Makefile.am

index 2117ade..8cce684 100644 (file)
@@ -185,7 +185,7 @@ tools_alg_test_LDADD = @GLIB_LIBS@
 unit_test_session_SOURCES = $(gdbus_sources) src/log.c src/dbus.c \
                unit/test-session.c unit/utils.c unit/manager-api.c \
                unit/session-api.c unit/test-connman.h
 unit_test_session_SOURCES = $(gdbus_sources) src/log.c src/dbus.c \
                unit/test-session.c unit/utils.c unit/manager-api.c \
                unit/session-api.c unit/test-connman.h
-unit_test_session_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
+unit_test_session_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ -ldl
 unit_objects += $(unit_test_session_OBJECTS)
 endif
 
 unit_objects += $(unit_test_session_OBJECTS)
 endif