diff --git a/scripts/embed-frontend.sh b/scripts/embed-frontend.sh index 73a693191..65928007d 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"