https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120527
--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- FWIW, we can do the ELF-style weak reference trick on Darwin - we just have to allow the potentially missing symbol(s) at static link time [so pass -U,_xxxxxx] to the link line], since the static linker does not allow undefined symbols by default.