Open cforce opened 1 year ago
This would require a new buildpack to install the MUSL build tools. I'm OK leaving this open as a placeholder though.
Moving this and changing this as a request to enable support for static compilation with native image.
Off the top of my head, this will require adding the MUSLC build tools. One way would be to create a buildpack that contributes to the MUSLC build tools. Another would be to use an extension and have them installed with the native package manager. Aside from that, we might want to add a flag to the native-image buildpack that makes setting the required arguments easier. Like BP_NATIVE_IMAGE_STATIC=true|false
.
See https://github.com/paketo-buildpacks/java-native-image/issues/507#issuecomment-1307467973 for more background.
To compile full static native-images the MUSL CC is neded on the linux os which runs the native-image compile Provide support with liberica-openjdk-alpine-musl as packet buildpack ( https://registry.hub.docker.com/r/bellsoft/liberica-openjdk-alpine-musl)
Also see https://github.com/paketo-buildpacks/java-native-image/issues/507