I want to compile a dynamically linked executable on Linux, and I want to target the older glibc ABI so that it can work as much as possible on Linux computers. I know that a typical solution for this is to use chroot or a virtual machine, install the old toolchain, and let the toolchain naturally target the older glibc ABI, but I wonder if there is a way to explicitly tell the compiler "Hey, I want you to depend from version GLIBCXX_3.4.11 ".
Thank!
Hey, I want you to depend on version GLIBCXX_3.4.11
, GLIBCXX libstdc++, glibc.
GLIBCXX
libstdc++
glibc
( ) , GLIBCXX_3.4.11, libstdc++.so - , .
GLIBCXX_3.4.11
libstdc++.so
- libstdc++.so, chroot . , " GLIBCXX_3.4.11".
chroot