brew install SergioBenitez/osxct/x86_64-unknown-linux-gnu
brew install x86_64-linux-gnu-binutils
rustup target add x86_64-unknown-linux-gnu
- Edit
~/.cargo/config
and add
[target.x86_64-unknown-linux-gnu]
linker = "x86_64-unknown-linux-gnu-gcc"
source ~/.cargo/config
- Edit
Cargo.toml
and include OpenSSL crate dependency This is the part missing from many how-to
[dependencies]
openssl = { version = "0.10", features = ["vendored"] }
cargo build --target x86_64-unknown-linux-gnu --release