static ctors in shared libs

Guillaume Piolat via Digitalmars-d digitalmars-d at puremagic.com
Sun Mar 27 12:31:46 PDT 2016


On Sunday, 27 March 2016 at 17:58:01 UTC, bitwise wrote:
> On Sunday, 27 March 2016 at 16:54:53 UTC, bitwise wrote:
>
>> Phobos should be linked statically even when it's a shared 
>> library, so it should still have all static ctors called 
>> properly.
>>
>>     Bit
>
> Correction...Phobos would be statically linked to a dynamically 
> loaded shared library. This could be a problem.

Hasn't seen any practical problem with that, not sure why people 
say it's a bad idea TBH. I like that everything is in a single 
static binary.

The way bigger problem being OSX shared libraries unloading (with 
the leaking workaround), I haven't really followed your work 
recently about it!


More information about the Digitalmars-d mailing list