diff --git a/pyodide_build/pywasmcross.py b/pyodide_build/pywasmcross.py index 13b2ee64..fd821df4 100755 --- a/pyodide_build/pywasmcross.py +++ b/pyodide_build/pywasmcross.py @@ -188,6 +188,9 @@ def replay_genargs_handle_linker_opts(arg: str) -> str | None: # wasm-ld does not recognize some link flags "--sort-common", "--as-needed", + # macOS-specific linker flags that wasm-ld doesn't understand + "-headerpad_max_install_names", + "-dead_strip_dylibs", ]: continue