Skip to content

Commit 201f29a

Browse files
Ignore -headerpad_max_install_names and -dead_strip_dylibs for wasm-ld (#168)
These are macOS-specific linker arguments that are added by Meson, which are not recognised by wasm-ld and raise errors. We exclude them here as it helps with building packages on macOS host machines.
1 parent 9ca868a commit 201f29a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyodide_build/pywasmcross.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ def replay_genargs_handle_linker_opts(arg: str) -> str | None:
188188
# wasm-ld does not recognize some link flags
189189
"--sort-common",
190190
"--as-needed",
191+
# macOS-specific linker flags that wasm-ld doesn't understand
192+
"-headerpad_max_install_names",
193+
"-dead_strip_dylibs",
191194
]:
192195
continue
193196

0 commit comments

Comments
 (0)