RFR: 8257620: Do not use objc_msgSend_stret to get macOS version
Erik Joelsson
erikj at openjdk.java.net
Wed Dec 2 22:03:54 UTC 2020
On Wed, 2 Dec 2020 21:57:15 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
>> Interesting, I still able to run the build after this change on macOS 10.9.5. I use jdk image and there is no LC_VERSION_MIN_MACOSX in libjvm. libjli, libjava have one, and it's 10.9
>
> The current intention is to be consistent with the min system version and it's currently set to 10.9. If libjvm.dylib gets a different value, then that would be a bug, but note that this could also vary depending on how the build is configured and the compiler version used.
>
> So far, I have only bumped this version once, and that was because the toolchain required it when switching to Clang from GCC. Keeping it low is nice for backwards compatibility. That said, I don't see a problem with increasing this value to 10.10 if it's needed for something. Even 10.10 was EOL a long time ago now. The current value is set in make/autoconf/flags.m4.
>
> The discrepancy in Info.plist was fixed in JDK-8252145.
We are indeed missing the macos-version-min argument when linking libjvm.dylib. This is a bug.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1569
More information about the build-dev
mailing list