Desperately looking for a work-around to load and unload D shared libraries from C on OSX
ponce via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 16 15:29:44 PDT 2015
Context: On OSX, a C program can load a D shared library but once
unloaded the next dlopen will crash, jumping into a callback that
doesn't exist anymore.
I've filed it here: https://issues.dlang.org/show_bug.cgi?id=15060
It looks like this was known and discussed several times already:
http://forum.dlang.org/post/vixoqmidlbizawbxmsao@forum.dlang.org
(2015)
https://github.com/D-Programming-Language/druntime/pull/228 (2012)
Any idea to work-around this problem would be awesome.
I'm not looking for something correct, future-proof, or pretty.
Any shit that still stick to the wall will do. Anything!
The only case I need to support is: C host, D shared library,
with runtime statically linked.
Please help!
More information about the Digitalmars-d
mailing list