Alias -static-compiler-rt and static-libc++ to their gcc counterparts.
Currently invoking -static-libgcc or -static-libstdc++ will ensure only use of static libs.
In future if we want to do more accurate handling with better behaviour with the linker we can remove the alias and pass a custom flag.
For now this would be a great alias for sanity.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
It would be nice to have a flag here that's agnostic to the value supplied to -rtlib or -stdlib. Perhaps -static-rtlib (for either libgcc or compiler-rt) and -static-stdlib (for either libc++ or libstdc++). (Yes, it's bad that we use stdlib to mean "the C++ standard library", but that is the status quo.)
Comment Actions
rC113891 introduced -stdlib... yes it would be nice if it were named -c++stdlib or -cxxstdlib... (I'm not good at naming)
We don't need to be 100% compatible with gcc here.. --push-state -Bstatic -lc++/-lstdc++ --pop-state can also be used. --pop-state works with ld.bfd/gold/lld