You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To build a crate with type “cdylib” or “dylib” on x86_64-unknown-linux-musl target.
Describe the solution you'd like
Make cargo’s “cdylib” and “dylib” crate types usable on musl targets.
Notes
The text was updated successfully, but these errors were encountered:
ghost
added
the
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
label
Aug 9, 2020
I believe you can set RUSTFLAGS="-C target-feature=-crt-static" to build a dylib on musl. More information can be found at rust-lang/rust#59302. Closing as this is more of a rustc issue.
Describe the problem you are trying to solve
To build a crate with type “cdylib” or “dylib” on x86_64-unknown-linux-musl target.
Describe the solution you'd like
Make cargo’s “cdylib” and “dylib” crate types usable on musl targets.
Notes
The text was updated successfully, but these errors were encountered: