The concrete reason I am asking this, is because I am trying to produce a C/C++ toolchain that can build C++17 code and produce binaries that can run on as many client systems as possible. I need at least gcc 9 for (stable) C++17 support. But that would mean the client system needs at least libstdc++.so.6.0.26 (GLIBCXX_3.4.26). It would also mean I cannot use a newer compiler without losing compatibility with several client systems, because libstdc++ is coupled to gcc.
GNU libc is not coupled to gcc. I can choose the newest compiler and still use the old glibc 2.28 to build C11 code.
libstdc++is not really coupled to GCC either -- you can useg++to buildC++code withlibc++instead.By default
g++useslibstdc++because they both come from the same project, while GLIBC is a separate project.