RFR: 8370659: [mobile] enable static-libs-image for Android [v2]
Johan Vos
jvos at openjdk.org
Thu Jan 8 07:58:08 UTC 2026
On Wed, 7 Jan 2026 12:46:37 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> We have a kind of third level as the OS_ENV; this is currently used on Windows only to separate msys/wsl/cygwin, but it could presumably be re-used (mis-used?) for Android as well. Or, we should introduce a separate OS_SUBTYPE for Android.
>
> Or,perhaps even better, introduce an OS_FAMILY=linux for OS=linux and OS=android. That might be a better fit for the "macOS is BSD" conundrum as well, so we could have OS_FAMILY=bsd and keep OS=macosx or OS=bsd to separate them.
I agree with that. I think using OS_ENV for this is rather mis-using that property (or at least using it in a different field than the msys/cygwin options), but OS_FAMILY would make sense. However, I think that needs to be introduced upstream in jdk. The macos/bsd relation is a perfect example on why that new OS_FAMILY would be very useful.
If something like that is added upstream (and used in different makefiles), we can apply it to Android as well. Until then, I suggest we are pragmatic here.
-------------
PR Comment: https://git.openjdk.org/mobile/pull/40#issuecomment-3722552448
More information about the mobile-dev
mailing list