-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Cross compiling from windows to linux-musl #33608
Comments
Do you propose to remove that linker option? May seem obvious, but you didn't state that. |
Well I was hoping that someone could tell me whether Having looked into it, it seems to be the case that |
Added in rust-lang/libc#246 by accident I fixed in rust-lang/libc#287 but we unfortunately can't update until rust-lang/libc#291 lands (but hopefully that'll be soon!) |
Brings in a fix where `-lutil` is no longer passed for musl targets, lifting the need for a musl toolchain to be installed again. Closes rust-lang#33608
std: Update libc submodule Brings in a fix where `-lutil` is no longer passed for musl targets, lifting the need for a musl toolchain to be installed again. Closes rust-lang#33608
It works! Almost.
rustc
passes an additional library to the linker-lutils
, which doesn't exist in the musl std package, and doesn't seem to be required. With that library removed, cross compiling to linux works out of the box with rustup (assuming you can obtain an elf linker...).The text was updated successfully, but these errors were encountered: