For some reason, even though the tests are linked against libgobject.la
and libgobject.la mentions libglib.la as a dependency, the tests are
running against the system glib instead of the in-tree one.
Adding the libglib.la file as an explicit LDFLAG fixes it.
libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
libgobject = $(top_builddir)/gobject/libgobject-2.0.la
+
+# libtool dependency tracking seems broken. this is currently
+# required to get the tests to dynamic link against the in-tree
+# libglib instead of the system one
+libgobject += $(libglib)
+
########################################################################
noinst_LTLIBRARIES = libtestgobject.la
########################################################################
-LDADD = libtestgobject.la $(libgobject)
+LDADD = libtestgobject.la $(libgobject)
test_programs = \
deftype \