<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 9, 2013 at 3:33 AM, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Saturday, 9 November 2013 at 04:43:24 UTC, Timothee Cour wrote:<br>

<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
runtime loading of shared libraries on OSX, so that it works as on linux<br>
I see b/10440 fixed in changelog, however does that mean it should work as<br>
safely as on linux? (both runtime and nonruntime libs)<br>
</blockquote>
<br></div>
Unfortunately no. I think the biggest obstacle is TLS. DMD emulates TLS on Mac OS X, which doesn't really work with dynamic libraries. It didn't exist natively on Mac OS X when DMD for D2 was ported to Mac OS X. I guess that best option is that DMD start to use native TLS. That would mean we need to drop support for Mac OS X Snow Leopard (10.6). Unless we move the part of the dynamic linker that handles TLS to druntime, which I think is technially possible.<br>
</blockquote><div><br></div><div>10.6 is 3 releases old, it would be acceptable. Should we use a quick poll (<a href="https://www.surveymonkey.com/">https://www.surveymonkey.com/</a>) to vote for it?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Except from that I think it might be easier to implement support for dynamic libraries on Mac OS X. The dynamic linker on Mac OS X has a much broader API than on Linux. We can use more of the existing functions there.<br>

<br>
--<br>
/Jacob Carlborg<br>
</blockquote></div><br></div></div>