Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build mostly static native image, loose linux glibc requirement to 2.12 #730

Merged
merged 4 commits into from
Dec 13, 2022

Conversation

gzm55
Copy link
Contributor

@gzm55 gzm55 commented Nov 1, 2022

This pr improves native image portability on linux and windows via:

  1. Enable mostly static image switch on linux and windows. on linux, the cost is about 33K file size before compressed, about +0.1%.
  2. Loose linux glibc requirement to 2.12. Now the mvnd depends on many JNIs which are built by glibc toolchains, so we cannot easily switch to musl toolchains or a fully static image (discussed in Build static native image for linux amd64 system #727 ). Whereas a lower glibc requirement adds support for most old linux boxes.

An explicit glibc requirement also removes a side effect of changing the build system. When update the build system from ubuntu 18.04 to 20.04, the glibc requirement may also increase to match the new os. On the other hand, glibc 2.12 is required by graalvm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants