https://issues.dlang.org/show_bug.cgi?id=24536
Issue ID: 24536 Summary: C runtime constructor/destructor pragma should not be on an exported symbol Product: D Version: D2 Hardware: All OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: alphaglosi...@gmail.com So apparently the C runtime constructor/destructors should not be exported. This article covers Linux shared libraries and mentions them. https://www.akkadia.org/drepper/dsohowto.pdf It would be good to verify if this is indeed true and ensure the compiler prevents it. --