Update to cross-compile with openssl on linux
This commit is contained in:
parent
0cefaf6b10
commit
d14d29b688
1 changed files with 8 additions and 7 deletions
15
Makefile
15
Makefile
|
|
@ -39,13 +39,14 @@ release-linux:
|
|||
# prereqs:
|
||||
# brew tap messense/macos-cross-toolchains
|
||||
# brew install x86_64-unknown-linux-gnu
|
||||
# features are so that we don't need to cross-compile openssl
|
||||
export CC_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-gcc && \
|
||||
export CXX_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-g++ && \
|
||||
export AR_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-ar && \
|
||||
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc && \
|
||||
cargo build --release --target=x86_64-unknown-linux-gnu --no-default-features \
|
||||
--features=sha1-rust,rust-tls
|
||||
# cross-compile openssl with "no-shared", e.g.
|
||||
# ./Configure linux-generic64 --prefix=$HOME/projects/2021-18-linux-cross/prefix/ --openssldir=$HOME/projects/2021-18-linux-cross/prefix/ --cross-compile-prefix=x86_64-unknown-linux-gnu- no-shared
|
||||
CC_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-gcc \
|
||||
CXX_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-g++ \
|
||||
AR_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-ar \
|
||||
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc \
|
||||
OPENSSL_DIR=/Users/igor/projects/2021-18-linux-cross/prefix \
|
||||
cargo build --release --target=x86_64-unknown-linux-gnu
|
||||
|
||||
|
||||
@PHONY: release-all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue