RFR: 8345744: Use C++ LINK_TYPE with SetupBuildLauncher in StaticLibs.gmk
Jiangli Zhou
jiangli at openjdk.org
Mon Dec 9 18:22:37 UTC 2024
On Mon, 9 Dec 2024 14:01:14 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> Thanks @jianglizhou, this was a much better solution. I don't know why I didn't realize that this was the proper solution when I wrote the code.
>
> You can remove `STANDARD_LIBS += -lstdc++` from macOS as well. This in turn means that `STANDARD_LIBS` is not used at all, and can be fully removed.
https://github.com/llvm/llvm-project/issues/76945 indicates `-static-libstdc++` could be unused on macOS. According to https://docs.brew.sh/C++-Standard-Libraries#:~:text=There%20are%20two%20C++%20standard,you're%20trying%20to%20build., "The default for 10.9 and later is libc++, which is also the default for clang on older platforms when building C++11 code".
Let's not mix the Linux fix with macos and instead address them separately.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22624#issuecomment-2529000377
More information about the build-dev
mailing list