-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
musl target change #1466
Comments
looks like we need to pass |
Yeah, I think there's two action items here:
Later we may want to add support for cargo-dist's -static/-dynamic targets, if that eventuates, or whichever solution people land on. |
That's unfortunate, I am against changing this to dynamic link by default. Is there anywhere I can file my complaint? |
[the zulip thread linked in] rust-lang/compiler-team#422 |
From the above I think we'll also need |
I'm thinking of adding a new target For all other |
P.S. It seems that void and OpenWRT also link with musl libc dynamically. |
I think it would be cool to have a way of declaring in your binstall metadata that the musl target is statically linked. (I guess also the minimum glibc version required if you really want to get fancy with target resolution.) |
That sounds like a really nice solution, it will also solve the glibc version without having to manually parse the downloaded binaries. |
When compiling a simple hello world dynamically linked via
However if throwing in the Both are resolved with rust-lang/compiler-team#422 (comment)
|
Thanks for the info, I checked our CI and we use Not sure how it would be affected by this change but currently it works fine. |
Pinning the issue to the top, as I believe it's time to start working on this issue, before the change is in stable rust. I think we might want some way of detecting if a binary is statically linked after downloading it, since the old musl bin is all statically linked. If we simply prevent fallback for musl, then it would cause many of such use cases to break. |
https://stackoverflow.com/a/55664341 Found PT_INTERP and program header in https://docs.rs/goblin/latest/goblin/elf/struct.Elf.html |
https://toot.cat/@Gankra/111252237883211271
The text was updated successfully, but these errors were encountered: