* libltdl/ltdl.c: The linker is confused by having one

definition of lt_libltdlc_LTX_preloaded_symbols tagged with
__declspec(dllexport) in ltdl.c and one definition with an
initial value in libltdlcS.c. So, just say extern in ltdl.c.
Fixes the mdemo-exec.test for MinGW.
This commit is contained in:
Peter Ekberg 2005-07-28 10:03:06 +00:00 committed by Peter Rosin
parent a0311aaf12
commit 7baaf98a7e
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2005-07-28 Peter Ekberg <peda@lysator.liu.se>
* libltdl/ltdl.c: The linker is confused by having one
definition of lt_libltdlc_LTX_preloaded_symbols tagged with
__declspec(dllexport) in ltdl.c and one definition with an
initial value in libltdlcS.c. So, just say extern in ltdl.c.
Fixes the mdemo-exec.test for MinGW.
2005-07-28 Peter Ekberg <peda@lysator.liu.se>
* config/ltmain.m4sh (func_mode_link) <lib>: Zap duplicate

View File

@ -190,7 +190,7 @@ loader_init (lt_get_vtable *vtable_func, lt_user_data data)
LT_SCOPE const lt_dlvtable * get_vtable (lt_user_data data);
#ifdef HAVE_LIBDLLOADER
LT_SCOPE lt_dlsymlist preloaded_symbols;
extern lt_dlsymlist preloaded_symbols;
#endif
/* Initialize libltdl. */