https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58142
--- Comment #8 from Ev Drikos <drikosev at gmail dot com> --- (In reply to Iain Sandoe from comment #4) > ... > > A quick look says that __cxa_thread_atexit exists in libc from Darwin13, > macOS 10.9 / Mavericks onwards. > ... This is a very thorough analysis that essentially answers my question. Thanks BTW, perhaps this problem wasn't OS X specific only but was perhaps affecting MinGW users as well. The PR/80816 has been reported also with similar symptoms to PR/58142 as explained at: https://sourceforge.net/p/mingw-w64/bugs/727/ Ev. Drikos