-
-
Notifications
You must be signed in to change notification settings - Fork 765
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 compile from gnu to musl not working on Fedora 28 #980
Comments
You need to have a copy of OpenSSL that's cross compiled to MUSL as well, and point openssl-sys to it. Alternatively, you can use the |
Thanks! That helped. I'm still learning my way around Rust. I had to add the following to my Cargo.toml file:
This way I can compile to a single executable with no library dependencies using:
If there is a better, more "rust" way, of doing this, I'm all ears! |
That's the way to do it! |
Thanks! |
For detail, check (sfackler/rust-openssl#980)
Here is what I'm seeing when trying to target x86_64-unknown-linux-musl on my Fedora 28 VM:
I also tried to use the PKG_CONFIG_ALLOW_CROSS=1 option as well but then I get this:
I have made sure that openssl-devel is installed:
pkg_config is installed as well:
Anything else that I could try?
The text was updated successfully, but these errors were encountered: