diff --git a/src/mono/browser/build/BrowserWasmApp.targets b/src/mono/browser/build/BrowserWasmApp.targets index 3b5683433fe86..ac33138749253 100644 --- a/src/mono/browser/build/BrowserWasmApp.targets +++ b/src/mono/browser/build/BrowserWasmApp.targets @@ -478,6 +478,7 @@ <_EmccLinkStepArgs Include="$(EmccExtraLDFlags)" /> <_WasmLinkStepArgs Include="@(_EmccLinkStepArgs)" /> + <_WasmLinkStepArgs Include="@(LinkerArg)" /> diff --git a/src/mono/wasi/build/WasiApp.targets b/src/mono/wasi/build/WasiApp.targets index d5433d1a7649f..f781e6469de22 100644 --- a/src/mono/wasi/build/WasiApp.targets +++ b/src/mono/wasi/build/WasiApp.targets @@ -372,6 +372,7 @@ <_WasiLinkStepArgs Include="-o "$(_WasiOutputFileName.Replace('\', '/'))"" /> <_WasmLinkStepArgs Include="@(_WasiLinkStepArgs)" /> + <_WasmLinkStepArgs Include="@(LinkerArg)" />