Skip to content

Commit

Permalink
Fix cargo build on linux, link libssl and libcrypto statically
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov committed Aug 8, 2022
1 parent c066776 commit c12a184
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ pushd rust
popd

pushd cargo
OPENSSL_STATIC=1 cargo build --release
if [[ "${HOST_TRIPLE}" == "x86_64-unknown-linux-gnu" ]] ; then
OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu OPENSSL_INCLUDE_DIR=/usr/include/openssl cargo build --release
else
OPENSSL_STATIC=1 cargo build --release
fi
popd

if [[ "${HOST_TRIPLE}" != "x86_64-pc-windows-msvc" ]] ; then
Expand Down

0 comments on commit c12a184

Please sign in to comment.