On 19 December 2013 16:34, Johannes Pfau <nos...@example.com> wrote: > Am Thu, 19 Dec 2013 15:39:28 +0000 > schrieb Iain Buclaw <ibuc...@gdcproject.org>: > >> On 19 December 2013 11:47, Johannes Pfau <nos...@example.com> wrote: >> > Am Tue, 17 Dec 2013 18:48:38 +0100 >> > schrieb "Iain Buclaw" <ibuc...@ubuntu.com>: >> > >> >> It's compatible with libgcc emutls. > > Of course! I totally missed the extern(C) in emutls.d. So emutls.d just > overwrites the default emutls implementation in libgcc? > > I guess this works fine for D apps as long as libgcc is a static > library. > > What about a shared libgcc? Wouldn't the compiler then pickup the > emutls function in libgcc instead of libgdruntme? >
It picks up the libgdruntime function in both cases. > The most difficult case is probably a C app loading a > shared D library? That I will worry about when we get to that point.