RFR: 8370659: [mobile] enable static-libs-image for Android [v2]

Julian Waters jwaters at openjdk.org
Wed Jan 7 12:50:13 UTC 2026


On Wed, 7 Jan 2026 12:19:27 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> There were a lot of these BIONIC ifdefs. I must admit I don't even know what bionic is; it seems to be the android libc? Maybe we should make it more explicit, like ANDROID_LIBC or ANDROID_BIONIC?

Bionic is indeed the Android C runtime library. Not sure if that's a built in compiler define or if it's defined by a header though?

> 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'm not too sure what OS_SUBTYPE is? I don't find any references to it in the build system.

-------------

PR Comment: https://git.openjdk.org/mobile/pull/40#issuecomment-3718692918
PR Comment: https://git.openjdk.org/mobile/pull/40#issuecomment-3718703155


More information about the mobile-dev mailing list