From bd21af33f3f6f7f981c9aab28d03326372c8c284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Ol=C3=A1h?= Date: Sat, 17 Oct 2026 15:04:29 +0200 Subject: [PATCH] fix: prefer toolchain-provided linker to embed web-ui assets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Attila Oláh --- scripts/embed-frontend.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/embed-frontend.sh b/scripts/embed-frontend.sh index 73a693191b..65928007d2 100755 --- a/scripts/embed-frontend.sh +++ b/scripts/embed-frontend.sh @@ -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"