]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c: Use windows paths while calling LoadLibrary.
authorEdward M. Lee <tailbert@yahoo.com>
Sat, 31 Mar 2001 00:12:41 +0000 (00:12 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sat, 31 Mar 2001 00:12:41 +0000 (00:12 +0000)
ChangeLog
libltdl/ltdl.c

index abe4130103de11583b51614a3f55171e2025136a..04de1c1e721d134be5e73b8b3abf534427ce8b2c 100644 (file)
--- 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  <china@thewrittenword.com>
 
        * libtool.m4 (save_CPPFLAGS): Fix typo.
index 79b32c4a286c42e3b222b39471526a0c61c878d3..ee7cc3f022c9d3da0db158504b3c10480514ff6f 100644 (file)
@@ -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