RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v3]
Julian Waters
jwaters at openjdk.org
Tue Feb 27 08:17:46 UTC 2024
On Tue, 27 Feb 2024 08:07:38 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
> can we get rid of LDCXX? On my system LDCXX is mapped to `g++` and LD is `gcc`; I searched for the differences, and the only thing I could find is that `g++` implicitly adds `-lstdc++ -shared-libgcc`; I suppose we could explicitly add these options, and use gcc everywhere.
>
> See: https://stackoverflow.com/a/172592 https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
I don't think that's a good idea, the differences between the gcc and g++ drivers are supposed to be (opaque) implementation details. Doing so would make us dependent on internal mechanisms of gcc subject to change between versions and would make bugfixing hard to do if such a change really happened and the linker command line got messed up as a result (This likely would impact clang too, unless I am mistaken?)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1966002485
More information about the core-libs-dev
mailing list