Commit 38fb30d7420a4b01f99cee31baa8c3990a1d1c5f

Behdad Esfahbod 2014-08-06T13:34:49

Use atexit() only if it's safe to call from shared library Apparently they are not (advertised as?) safe on BSD systems. We ignore the case of static libraries. Whitelisted on glibc, Android, and MSVC / mingw. https://bugs.freedesktop.org/show_bug.cgi?id=82246