https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88750
--- Comment #28 from Iain Sandoe <iains at gcc dot gnu.org> --- I wonder what would happen if you add -rdynamic (or -Wl,-export_dynamic) to the main exe in the static link case, perhaps that would ensure that the libstdc++ symbols get resolved from there.