On 04/07/2013 10:21 AM, Jacob Carlborg wrote: > On 2013-04-07 04:15, Ellery Newcomer wrote: > I think it needs weak linkage or similar. I don't know if it's possible > to do in D, but in C it can be done like this: > > https://github.com/D-Programming-Language/druntime/blob/master/src/rt/dylib_fixes.c > > Yes, druntime should only weakly link against _Dmain.