libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MinGW & library_names


From: Bob Friesenhahn
Subject: MinGW & library_names
Date: Wed, 29 Sep 2004 13:52:03 -0500 (CDT)

For MinGW (and probably Cygwin), libtool includes .dll.a file names in the library_names definition in .la files associated with DLLs. These files are only valuable for linking. However, libltdl invokes LoadLibrary on all files listed in library_names as well as for all other libtool libraries which are depended on. This means that Windows is attempting to load a non-loadable file.

Apparently this is not noticed under Cygwin since Cywin has altered Windows error handling. I have successfully altered Windows error handling as well in my copy of ltdl.c. This approach is "cheating" and might effect the dependent application.

It does not appear that the .dll.a names can be removed from the .la files, so it seems like libltdl should be doing some filtering on the names so that only .dll files are loaded under Windows. Does this seem reasonable?

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]