Skip to content

Commit 3156ed4

Browse files
committed
Build native image statically with Musl
It makes the native image more portable. The build environment requires Musl then.
1 parent 81e694a commit 3156ed4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ binary: clean ## Build the binary distribution
2525
native-image: clean ## Build the native image
2626
@mvnw -q package -DskipTests -P native-image -P '!java-packaging'
2727
native-image -jar target/perf-test.jar -H:Features="com.rabbitmq.perf.NativeImageFeature" \
28+
--static --libc=musl \
2829
--initialize-at-build-time=io.micrometer \
2930
--initialize-at-build-time=com.rabbitmq.client \
3031
--initialize-at-build-time=org.eclipse.jetty \

0 commit comments

Comments
 (0)