https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115421
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Liviu Ionescu from comment #12) > Isn't it possible to fix libstdc++ in order to run static multi-threaded > apps on older systems too? Well it depends. glibc changed how libpthread works in 2.34 and above. So someone with the specific versions that you are testing with need to debug it to see what is going wrong. It might need `-Wl,--whole-archive -lpthread -Wl,--no-whole-archive` as mentioned in PR 58909 or some other changes.