Stefan. I have had the same concerns as you. I have brought up a similar topic in the past. Even with your patch, DLL_EXPORT is a flawed macro name. I'd suggest the following patch:
#ifdef LIBLTDL_DLL_IMPORT # define LT_SCOPE __declspec(dllimport) extern #elif defined (LIBLTDL_DLL_EXPORT) # define LT_SCOPE __declspec(dllexport) extern #endif Of course, IMHO, references to DLL_EXPORT in ltmain.sh should also be removed. Jon > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > stefan > Sent: Tuesday, January 29, 2002 3:03 AM > To: [EMAIL PROTECTED] > Subject: libltdl for MinGW32 and native compilers > > > Dear list, > The attached patch is meant to fix problems with the libltdl.dll > under Windows. It attaches LT_SCOPE to each exported/imported symbol. > Furthermore it changes > > #ifdef DLL_EXPORT > # define LT_SCOPE __declspec(dllexport) > #endif > #ifdef LIBLTDL_DLL_IMPORT > # define LT_SCOPE extern __declspec(dllimport) > #endif > > into > > #ifdef LIBLTDL_DLL_IMPORT > # define LT_SCOPE __declspec(dllimport) extern > #elif defined (DLL_EXPORT) > # define LT_SCOPE __declspec(dllexport) extern > #endif > > This fixes the following problem: With the above order you *cannot* use > the libltdl.dll from another dll, because the dll would define DLL_EXPORT > and LIBLTDL_DLL_IMPORT concurrently. > > Do you agree? And will you apply the patch? > > Thanks in advance, > [EMAIL PROTECTED] > _______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool