[Top][All Lists]

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

Re: libtool 1.5 used in serveez package

From: Max Bowsher
Subject: Re: libtool 1.5 used in serveez package
Date: Sun, 25 May 2003 23:31:46 +0100

Bob Friesenhahn wrote:
> On Sun, 25 May 2003, Max Bowsher wrote:
>> If 1.4 was too permissive, I think 1.5 is too strict. There are many
>> where it is harmless to link a static lib into a DLL.
> Maybe so.  FYI, this restriction is generally applied for Unix as
> well since to do otherwise is not portable.  Allowing non-portable
> features will result in non-portable packages.
>> Would I be right in saying that, as long as no functions from the static
>> are exported by the finished DLL, there is no problem? Unfortunately, I
>> don't think there is any way to easily enforce that.
> The auto-import feature of GCC will happily import symbols from the DLL.

Yes, I know, I was speculating about some kind of
hypothetical --dont-export-symbols-from-static-libs flag that could allow
DLLs to link with static libs without the danger of them polluting the DLLs
own export namespace. Unfortunately, I don't think there is any to
practically do this portably, without things getting horribly messy.

What do you think about some mechanism to tell libtool "I know this
particular static lib is OK to link with without undesirable side effects"?


reply via email to

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