https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116159
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|jakub at redhat dot com | --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- So on mingw we link with -Wl,--version-script=.../gnu.ver and ld just ignores it? In any case, the iostream hack was meant for when GNU symbol versioning is actually used, so perhaps we want && defined(__ELF__) or something similar. Or && defined(_GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE) && defined(_GLIBCXX_HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT)