From: Edward M. Lee Date: Sat, 31 Mar 2001 11:08:47 +0000 (+0000) Subject: * libltdl/ltdl.c: Use windows paths while calling LoadLibrary. X-Git-Tag: multi-language-merge-point~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83325ce6400437d38fba385836be33c3abbb9da1;p=thirdparty%2Flibtool.git * libltdl/ltdl.c: Use windows paths while calling LoadLibrary. --- diff --git a/ChangeLog b/ChangeLog index 91e90c728..e056fc348 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,8 @@ ../bin/cygFOO-version.dll for normal dlls. dlls for modules remain with the .la file. + * libltdl/ltdl.c: Use windows paths while calling LoadLibrary. + 2001-03-22 Laurynas Biveinis * ltcf-c.sh: Clear ac_cv_prog_cc_pic for DJGPP. Do not add diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 79b32c4a2..ee7cc3f02 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -798,7 +798,15 @@ sys_wll_open (loader_data, filename) strcat (searchname, "."); } +#if __CYGWIN__ + { + char wpath[MAX_PATH]; + cygwin_conv_to_full_win32_path(searchname, wpath); + module = LoadLibrary(wpath); + } +#else module = LoadLibrary (searchname); +#endif LT_DLFREE (searchname); /* libltdl expects this function to fail if it is unable