Integrated: 8345744: Use C++ LINK_TYPE with SetupBuildLauncher in StaticLibs.gmk
Jiangli Zhou
jiangli at openjdk.org
Mon Dec 9 21:40:42 UTC 2024
On Sat, 7 Dec 2024 01:55:07 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:
> Please review following fix for linking static JDK launcher, thanks.
>
> - Set LINK_TYPE to C++ when building the static launcher to make sure LDCXX instead of LD is used for linking.
>
> - Remove -l:libstdc++. For linux, -static-libstdc++ is already set in STATIC_STDCXX_FLAGS. See https://github.com/openjdk/jdk/blob/e0d639878346946d0627a57b0eeb0cac8ca533fc/make/autoconf/lib-std.m4#L50.
>
> See more details in https://bugs.openjdk.org/browse/JDK-8345744.
This pull request has now been integrated.
Changeset: a606836a
Author: Jiangli Zhou <jiangli at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a606836a02bb3e4ff3e3aaad478fc7ac142b3e38
Stats: 5 lines in 2 files changed: 2 ins; 2 del; 1 mod
8345744: Use C++ LINK_TYPE with SetupBuildLauncher in StaticLibs.gmk
Reviewed-by: ihse
-------------
PR: https://git.openjdk.org/jdk/pull/22624
More information about the build-dev
mailing list