[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dev-serveez] Re: libtool 1.5 used in serveez package
From: |
Bob Friesenhahn |
Subject: |
[dev-serveez] Re: libtool 1.5 used in serveez package |
Date: |
Sun, 25 May 2003 15:42:20 -0500 (CDT) |
On Sun, 25 May 2003, stefan wrote:
> This message indicates that libtool is not able/does not want to link the
> static archive libiberty.a to the libserveez.dll. This worked perfectly
> with 1.4.2. When looking at the magic_regex_expr ('file_magic ^x86
> archive import|^x86 DLL') in libtool.m4 one can get the impression that
> windows dlls are now allowed to be linked against other dlls only. Static
> archives are not allowed anymore. Has this some reason?
It was a bug to allow Windows DLLs to link against static libraries
other than those delivered with the compiler. 1.5 fixes this bug.
The reason why it is a bad idea to link DLLs with the static library
is that the symbols from the static library are auto-imported similar
to those intended to be exposed by the DLL. This can cause problems if
two DLLs a program depends on link against the same static library,
particularly if the static libraries are different versions. Either
there are duplicate symbols, or the result is ambigious.
Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen