https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118716
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Ravali Yatham from comment #0) > Background: We have an agent code which was previously compiled with GCC > 4.4.7 using libc 2.12 and libstdc++ : 6.0.13 and are planning to upgrade it > to GCC 11.2. However to maintain backward Compatibility we would like to > link against older c/c++ runtime with GCC 11.2. You can't, that's not supported. You should look into the RHEL Developer Toolset (DTS) version of GCC.