* Makefile.am (libtest_la_LDFLAGS): Add -Wl,--kill-at so the names exported from the DLL
can be found by the runtime.
svn path=/trunk/mono/; revision=40719
2005-02-15 Zoltan Varga <vargaz@freemail.hu>
+ * Makefile.am (libtest_la_LDFLAGS): Add -Wl,--kill-at so the names exported from the DLL
+ can be found by the runtime.
+
* pinvoke13.cs: Fix test.
* libtest.c pinvoke13.cs: Fix test on big-endian machines.
INCLUDES = $(GLIB_CFLAGS)
if PLATFORM_WIN32
-libtest_la_LDFLAGS=-no-undefined -rpath `pwd`
+# the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
+# can't find them. So we use --kill-at to remove the @ suffix as well.
+libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
else
libtest_la_LDFLAGS = -rpath `pwd`
endif