From: Edward M. Lee Date: Sat, 31 Mar 2001 00:12:41 +0000 (+0000) Subject: * libltdl/ltdl.c: Use windows paths while calling LoadLibrary. X-Git-Tag: release-1-3d~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d35d97b0afac8c218ca5783049e476bdbf3f1c4f;p=thirdparty%2Flibtool.git * libltdl/ltdl.c: Use windows paths while calling LoadLibrary. --- diff --git a/ChangeLog b/ChangeLog index abe413010..04de1c1e7 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-16 Albert Chin * libtool.m4 (save_CPPFLAGS): Fix typo. 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