[Issue 15060] Can't load a D shared library first, then load a C shared library
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Oct 2 06:07:14 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15060
--- Comment #14 from bitwise <nicolas.jinchereau at gmail.com> ---
(In reply to Jacob Carlborg from comment #13)
> (In reply to bitwise from comment #12)
> > (In reply to Jacob Carlborg from comment #10)
> > >> DMD already does what's necessary for ELF (Linux, FreeBSD). Just do the same
> > >> for Mach-O and OS X.
> >
> > That's easier said than done ;)
>
> :)
>
> > This is why I was saying we should just add some(or one special one) pragmas
> > that will allow this to be done in the front end.
>
> I don't think this can be completely done in the front end. The code (or
> that function) that should be run as a global ctor/dtor need to be placed in
> a special segment/section, if I recall correctly.
Right, which is why I am recommending the special pragmas(or pragma).
--
More information about the Digitalmars-d-bugs
mailing list