Is it possible to specify the path to the libstdc++ in VS Code clangd extension?

Is there a way we can provide non default libstdc++ library to clangd with respect VScode remote. My company uses servers which have very old glibc versions. Is there a way where we can pass in the newer libstdc++ libraries to clangd. As clangd server continously fails to start in cscode remote
/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27’ not found (required by /env_build/llvm/clang10/bin/clangd)

/env_build/llvm/clang10/bin/clangd: /lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /env_build/llvm/clang10/bin/clangd)

/env_build/llvm/clang10/bin/clangd: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22’ not found (required by /env_build/llvm/clang10/bin/clangd)

/env_build/llvm/clang10/bin/clangd: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21’ not found (required by /env_build/llvm/clang10/bin/clangd)

(Linux From Scratch GNU/Linux x-lfs-2010 download | SourceForge.net) has gcc 4.4.5 and glibc-2.11. it built gcc-4.7.4 then llvm-3.5.2 (which should be able to build llvm-11 other things aside)

that’s not a good answer for the question as you asked it. the answer should be that you may be able to find a “binary distribution of LLVM” which works with your older libs if you look around to find “older releases of llvm”.

the question: “can i merely replace libstdc++ with another”? is not as simple as you think. it’s part of an entire gcc binary distribution (for one thing it loads libgcc_so.6 when used). no on that. but yes you should be able to find both older gcc and llvm packaged binary distributions “that just work when installed” (noting if your system is custom, you may have to shuffle installs).

Some of these are in /lib. Never change /lib files while your system is running it could corrupt your system causing (possible file corruptions or other issues and frozen PC).