Merge pull request #2675 from attilaolah/musl

Fix build against musl
This commit is contained in:
Martin Vogel authored and GitHub committed 2026-10-26 02:29:09 +01:00
commit 8530c8cd1c
1 file changed
+1 -1
+1 -1
View File
@@ -72,7 +72,7 @@ for file in "${FILES[@]}"; do
if $IS_LINUX; then
# Linux: ld -r -b binary (zero bloat, ELF only)
abs_obj="$(cd "$(dirname "$0")/.." && pwd)/$obj"
(cd "$DIST_DIR" && ld -r -b binary -o "$abs_obj" "$rel")
(cd "$DIST_DIR" && "${LD:-ld}" -r -b binary -o "$abs_obj" "$rel")
else
# macOS/Windows/MSYS2: generate C byte array + cc (no xxd dependency)
local_c="$OUTPUT_DIR/embed_${mangled}.c"