toolchains_llvm icon indicating copy to clipboard operation
toolchains_llvm copied to clipboard

Add system-stdc++ for shared libstdc++ linking

Open keith opened this issue 4 months ago • 2 comments

Depending on your project statically linking libstdc++ from your sysroot might not be viable. For example if you rely on other shared libraries that link the shared version, linking the static version to a binary might result in ODR violations. This new system-stdc++ sets the compile flags correctly but doesn't force the static version, so the sysroot's shared version will be preferred.

keith avatar Oct 11 '24 18:10 keith