shared libs for OSX

bitwise via Digitalmars-d digitalmars-d at puremagic.com
Thu May 21 08:51:37 PDT 2015


On Thu, 21 May 2015 04:12:19 -0400, Timothee Cour via Digitalmars-d  
<digitalmars-d at puremagic.com> wrote:

> dlopen() of a D shared library works when called from a C++ file, and  
> that
> a C++ file can call multiple D shared libraries simultaneously when using
> RTLD_LAZY option.
>
> Before waiting for a full solution with an integrated druntime, is there  
> at
> least a way to have a separate runtime in each shared library, so that
> dlopen() can be called from a D file?

I'm not sure exactly what you mean about "integrated runtime".

Looking in /usr/share/dmd/lib, I see phobos as a static library (which I'm  
assuming includes druntime, which I don't see anywhere). If the runtime is  
linked as a static library, shouldn't it be able to link to a dynamic  
library and just work?

I think a separate runtime is what I was expecting.

> On Thu, May 21, 2015 at 1:07 AM, Jacob Carlborg via Digitalmars-d <
> digitalmars-d at puremagic.com> wrote:
>>
>> I don't think anyone is working on this. Native TLS is a prerequisite
>> which requires changes both to the compiler and the runtime. There's an
>> enhancement request for native TLS [1].
>>
>> [1] https://issues.dlang.org/show_bug.cgi?id=9476
>>
>> --
>> /Jacob Carlborg
>>


(In reply to John Colvin from comment #11)
> I think the time has come that 10.6 support could be dropped, no? It's no
> longer supported by Apple.

+1

   Bit


More information about the Digitalmars-d mailing list