Closed zydxhs closed 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:
messense/rust-musl-cross: aaarch64-musl
export TARGET=x86_64-unknown-linux-musl
export CC=$TARGET_CC
export C_INCLUDE_PATH=$TARGET_C_INCLUDE_PATH
export LD=$TARGET-ld
Why not add them to the environment variables of the docker image?
https://github.com/messense/rust-musl-cross/issues/35#issue-881628375
TLDR: use openssl-src crate instead.
It took me a long time to finally figure out how to use OpenSSL-sys.
I cross-compiled the openssl library using
messense/rust-musl-cross: aaarch64-musl
and had to manually modify the following environment variables:export TARGET=x86_64-unknown-linux-musl
export CC=$TARGET_CC
export C_INCLUDE_PATH=$TARGET_C_INCLUDE_PATH
export LD=$TARGET-ld
Why not add them to the environment variables of the docker image?