Skip to content

Commit

Permalink
Pass recipe ldflags through library rewriting logic as well
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Jan 15, 2025
1 parent 663e78e commit 529a583
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyodide_build/pywasmcross.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,10 @@ def handle_command_generate_args( # noqa: C901
# Better to fail at compile or link time.
if is_link_cmd(line):
new_args.append("-Wl,--fatal-warnings")
new_args.extend(build_args.ldflags.split())
for arg in build_args.ldflags.split():
if arg.startswith("-l"):
arg = replay_genargs_handle_dashl(arg, used_libs)
new_args.append(arg)
new_args.extend(get_export_flags(line, build_args.exports))

if "-c" in line:
Expand Down

0 comments on commit 529a583

Please sign in to comment.