Skip to content
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

dylib and cdylib crate type support on musl target is needed. #8607

Closed
ghost opened this issue Aug 9, 2020 · 1 comment
Closed

dylib and cdylib crate type support on musl target is needed. #8607

ghost opened this issue Aug 9, 2020 · 1 comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@ghost
Copy link

ghost commented Aug 9, 2020

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

@ghost 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
@ehuss
Copy link
Contributor

ehuss commented Aug 19, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

1 participant