https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98414
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I don't. LIBUBSAN_SPEC comes from gcc.c, while the libstdc++ stuff comes from cp/g++spec.c and the ordering between the two is hard to achieve, plus it is unclear if we shouldn't for -static-libubsan instead just add another -lstdc++ copy (but one honoring -static-libstdc++).