gzm55 opened a new pull request, #730: URL: https://github.com/apache/maven-mvnd/pull/730
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 `JNI`s which are built by `glibc` toolchains, so we cannot easily switch to `musl` toolchains or a fully static image (discussed in #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 graal from [21.1](https://github.com/oracle/graal/blob/master/sulong/CHANGELOG.md#version-2110) which invokes the `pthread_setname_np` api. For older graal, the glibc 2.9 is possible. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
