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] (in progress) ------------- Commit messages: - 8322873: Duplicate -ljava -ljvm options for libinstrument Changes: https://git.openjdk.org/jdk/pull/17230/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17230&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8322873 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/17230.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17230/head:pull/17230 PR: https://git.openjdk.org/jdk/pull/17230