mold icon indicating copy to clipboard operation
mold copied to clipboard

[macOS Apple Silicon] Add support for -undefined dynamic_lookup

Open nsabovic opened this issue 2 years ago • 3 comments

When compiling napi-rs (Node.js addons in Rust) the Rust compilation fails with

note: mold: fatal: unknown command line option: -undefined

The relevant flags are "-fuse-ld=/opt/homebrew/bin/ld64.mold" "-Wl" "-undefined" "dynamic_lookup".

nsabovic avatar Aug 20 '22 15:08 nsabovic

I also encountered that, and seems like Mold has not been supported -undefined dynamic_lookup in their codebase. Hopefully it can be fixed so I can fully adopt mold in my projects ;)

pan93412 avatar Aug 29 '22 08:08 pan93412

I've got this issue with Paddle: https://github.com/PaddlePaddle/Paddle/issues/45761

kiufta avatar Sep 05 '22 10:09 kiufta

Thank you guys for reporting. Let me take a look.

rui314 avatar Sep 05 '22 11:09 rui314