https://issues.dlang.org/show_bug.cgi?id=22520 --- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> --- So what we need to now do is generate a new crt_constructor function that registers static destructors with __cxa_atexit(). --