+2007-01-27 Robert Jordan <robertj@gmx.net>
+
+ * test/Makefile.am: Add linker option to be able to
+ load symbols from the main program.
+ * test/module.c: Clean-ups.
+
2007-01-26 Robert Jordan <robertj@gmx.net>
* configure.ac: Add PLATFORM_WIN32 conditional.
test_eglib_CFLAGS = -Wall -Werror -D_FORTIFY_SOURCE=2 -I$(srcdir)/../src -DDRIVER_NAME=\"EGlib\"
test_eglib_LDADD = ../src/libeglib.la
+test_eglib_LDFLAGS = -Wl,--export-dynamic
test_glib_CFLAGS = `pkg-config --cflags glib-2.0` -DDRIVER_NAME=\"GLib\"
-test_glib_LDFLAGS = `pkg-config --libs glib-2.0`
+test_glib_LDFLAGS = `pkg-config --libs glib-2.0 gmodule-2.0`
MAINTAINERCLEANFILES = Makefile.in
#if defined (G_OS_WIN32)
#define EXTERNAL_SYMBOL "GetProcAddress"
-#define INTERNAL_SYMBOL "dummy_export"
#else
#define EXTERNAL_SYMBOL "system"
-/* FIXME: g_module_symbol () must prepend the "_" */
-#define INTERNAL_SYMBOL "_dummy_export"
#endif
void G_MODULE_EXPORT
-dummy_export ()
+dummy_test_export ()
{
}
if (!proc)
return FAILED ("external lookup failed. #4");
- if (!g_module_symbol (m, INTERNAL_SYMBOL, &proc))
+ if (!g_module_symbol (m, "dummy_test_export", &proc))
return FAILED ("in-proc lookup failed. #5");
if (!proc)