2005-02-15 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Tue, 15 Feb 2005 21:23:07 +0000 (21:23 -0000)
committerZoltan Varga <vargaz@gmail.com>
Tue, 15 Feb 2005 21:23:07 +0000 (21:23 -0000)
* 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

mono/tests/ChangeLog
mono/tests/Makefile.am

index 95b3067297e1eeee2fe24b843bd9ec7cd82fdebd..4918ef900bb097c683ac0699664d5cf613e7f927 100644 (file)
@@ -1,5 +1,8 @@
 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.
index 9efa267c59aa7cee7ebbd09e0dc86ff3a74d20af..dcf9ec06c59f04842f1a49c3f8079005391c90e6 100644 (file)
@@ -354,7 +354,9 @@ noinst_LTLIBRARIES = libtest.la
 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