Skip to content

Commit bd21af3

Browse files
committed
fix: prefer toolchain-provided linker to embed web-ui assets
Signed-off-by: Attila Oláh <attila@dorn.haus>
1 parent 72c3604 commit bd21af3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/embed-frontend.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ for file in "${FILES[@]}"; do
7272
if $IS_LINUX; then
7373
# Linux: ld -r -b binary (zero bloat, ELF only)
7474
abs_obj="$(cd "$(dirname "$0")/.." && pwd)/$obj"
75-
(cd "$DIST_DIR" && ld -r -b binary -o "$abs_obj" "$rel")
75+
(cd "$DIST_DIR" && "${LD:-ld}" -r -b binary -o "$abs_obj" "$rel")
7676
else
7777
# macOS/Windows/MSYS2: generate C byte array + cc (no xxd dependency)
7878
local_c="$OUTPUT_DIR/embed_${mangled}.c"

0 commit comments

Comments
 (0)