Integrated: 8322873: Duplicate -ljava -ljvm options for libinstrument
Mikael Vidstedt
mikael at openjdk.org
Wed Jan 3 19:26:31 UTC 2024
On Tue, 2 Jan 2024 21:44:04 GMT, Mikael Vidstedt <mikael at openjdk.org> wrote:
> The libinstrument library is linked against libjava and libjvm, twice. This is mostly harmless but Xcode 15.x generates a warning:
>
> Creating support/modules_libs/java.instrument/libinstrument.dylib from 12 file(s)
> ld: warning: ignoring duplicate libraries: '-ljava', '-ljvm'
>
> In particular, note that the `JDKLIB_LIBS` variable passed in to `LIBS` already contains the -ljava -ljvm options. Digging through the history it seems like this issue was introduced with [JDK-8141290](https://bugs.openjdk.org/browse/JDK-8141290).
>
> Testing: tier1,builds-tier[2-5]
This pull request has now been integrated.
Changeset: 296c5b64
Author: Mikael Vidstedt <mikael at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/296c5b645a2ecd8293a02233962c4a316a506c52
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
8322873: Duplicate -ljava -ljvm options for libinstrument
Reviewed-by: dholmes, jwaters, erikj
-------------
PR: https://git.openjdk.org/jdk/pull/17230
More information about the build-dev
mailing list