[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recursive ltdl causes symbols to disappear from .dll.a on mingw32
From: |
Brice Goglin |
Subject: |
Re: recursive ltdl causes symbols to disappear from .dll.a on mingw32 |
Date: |
Thu, 06 Sep 2012 17:25:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 |
Le 06/09/2012 16:10, Bob Friesenhahn a écrit :
> On Tue, 4 Sep 2012, Brice Goglin wrote:
>
>> FYI, I finally found the problem.
>> ltdl symbols are marked as __declspec(dllexport) while my symbols are
>> not. It looks like it causes all my symbols to be hidden after link.
>> I am going to look at marking my symbols as dllexport too (we only
>> optionally used gcc's visibility attributes so far).
>> Does anybody know if marking as dllexport could cause other problems?
>
> For GraphicsMagick's loadable modules I pass these extra options to
> libtool:
>
> -no-undefined -export-symbols-regex ".*" -shared -module -avoid-version
>
> Notice the wildcard specification for exported symbols.
Interesting.
Would this export all my symbols, including the internal ones that are
not public?
The good thing about the dllexport attribute is that you only place it
in front of symbols that must be public.
Brice