fix: prefer toolchain-provided linker to embed web-ui assets

Signed-off-by: Attila Oláh <attila@dorn.haus>
This commit is contained in:
Attila Oláh committed 2026-10-21 22:24:20 +02:00
1 parent 72c36044a4
commit bd21af33f3
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"