rust-cross / rust-musl-cross

Docker images for compiling static Rust binaries using musl-cross
MIT License
620 stars 68 forks source link

Add env for compile openssl #49

Closed zydxhs closed 2 years ago

zydxhs commented 2 years ago

I cross-compiled the openssl library using messense/rust-musl-cross: aaarch64-musl and had to manually modify the following environment variables:

Why not add them to the environment variables of the docker image?

messense commented 2 years ago

https://github.com/messense/rust-musl-cross/issues/35#issue-881628375

TLDR: use openssl-src crate instead.

zydxhs commented 2 years ago

It took me a long time to finally figure out how to use OpenSSL-sys.