USE_INIT_ARRAY

If set, produce .init_array/.fini_array instead of legacy .ctors/.dtors . OpenBSD added the support in Aug 2016. Other supported platforms has supported .init_array for years.

version(COMPILE)
extern (C++) nothrow
static if(ELFOBJ)
enum USE_INIT_ARRAY = !TARGET_OPENBSD;

Meta