New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ld: unknown option: --as-needed" when trying to cross-compile on macOS High Sierra #52684
Comments
FWIW, it looks like the
But not in the macOS triple:
|
You'll need a cross compilation toolchain to cross compile. |
That's not really helpful. 😕 I can cross-compile just fine by taking an extra step to change the linker to |
Ah yes as @sfackler mentioned here the issue is the wrong toolchain is being used, but using an appropriate toolchain should solve the issue! |
I am also struggling to cross-compile any Rust code for MIPS. I have an open question on StackOverflow detailing my attempts. Have spent a day on this without luck :/ |
Trying to cross-compile an empty project produces the following error:
Same failure with the
mips-unknown-linux-gnu
target triple, as well.Here's the project source:
The text was updated successfully, but these errors were encountered: