Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit 710c19d

Browse files
Use musl for static linking
1 parent ecd6a5a commit 710c19d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ jobs:
8989
NODE_VERSION: '20.x'
9090
FORCE_COLOR: '1'
9191
steps:
92+
- name: Install musl
93+
run: sudo apt-get install -y musl
9294
- name: Setup Java
9395
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
9496
with:
@@ -160,6 +162,8 @@ jobs:
160162
NODE_VERSION: '20.x'
161163
FORCE_COLOR: '1'
162164
steps:
165+
- name: Install musl
166+
run: sudo apt-get install -y musl
163167
- name: Setup Java
164168
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
165169
with:

build-scripts/graal.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ switch (process.platform) {
6363
break;
6464
case 'linux':
6565
// On linux, statically link all libraries. Allows usage on systems
66-
// which are missing or have incompatible versions of GLIBC
67-
NATIVE_IMAGE_BUILD_ARGS.unshift('--static');
66+
// which are missing or have incompatible versions of GLIBC.
67+
// See https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/
68+
NATIVE_IMAGE_BUILD_ARGS.unshift('--static', '--libc=musl');
6869
break;
6970
}
7071

0 commit comments

Comments
 (0)