Java > Scala
Jacob Carlborg
doob at me.com
Wed Nov 30 04:18:16 PST 2011
On 2011-11-30 09:19, Walter Bright wrote:
> On 11/29/2011 11:46 PM, Jacob Carlborg wrote:
>> I agree. The shared library problem is blocked by DMD not being able to
>> correctly generate PIC.
>
> The compiler does correctly generate PIC code on Linux.
So you're saying this issue has already been fixed:
http://d.puremagic.com/issues/show_bug.cgi?id=4583 ?
> The problem is nobody has figured out the details of making Phobos/Druntime a shared
> library.
I'm trying to. I've started to read about TLS to try to fix that on Mac
OS X for dynamic libraries.
> I.e. there's more to creating a shared library than throwing -fPIC.
Yeah, I know that. I've already implemented dynamic libraries for D1
with Tango on Mac OS X. Trying to do the same thing now for D2. It's
just a bit problematic if the compiler doesn't generate the correct
code. Note that it's been a while since I tried to implement dynamic
libraries on Linux so I don't know if the above mentioned issue is fixed
or not, it's still open though.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list