From 23ab0ff2a0738a9919e2c7bdc5da97aecf682012 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Mon, 20 Jul 2026 16:25:00 +0100 Subject: [PATCH] toolchains/emscripten/defs.mak LINK with LD LDFLAGS --- toolchains/emscripten/defs.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchains/emscripten/defs.mak b/toolchains/emscripten/defs.mak index 43f1933f..95455aed 100644 --- a/toolchains/emscripten/defs.mak +++ b/toolchains/emscripten/defs.mak @@ -23,7 +23,7 @@ MAKE_WASM = 1 # to add --strip-debug to wasm-ld, discarding the DWARF produced by -g in # CFLAGS. That leaves magic.wasm without debug sections, making -gsource-map # produce an empty source map at the final link. -LINK = $(LD) -r -g +LINK = $(LD) -r $(LDFLAGS) # Emscripten linker flags. # The link step runs from the magic/ subdirectory, so embed-file paths