mold
mold copied to clipboard
[macOS Apple Silicon] Add support for -undefined dynamic_lookup
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"
.
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 ;)
I've got this issue with Paddle: https://github.com/PaddlePaddle/Paddle/issues/45761
Thank you guys for reporting. Let me take a look.