Cargo needs runpath set to find openssl libraries at runtime

This commit is contained in:
dslm4515
2023-12-30 22:04:57 -06:00
parent 87f7e21b49
commit 9df140f796

View File

@ -30,6 +30,9 @@ cargo build --release &&
unset SSL_CERT_FILE RUST_BACKTRACE
# Set the runpath for cargo
sudo patchelf --set-rpath /opt/openssl/lib target/release/cargo
sudo mkdir -pv $BUILD/opt/rustc-1.74.0/bin &&
sudo cp -v target/release/cargo \
$BUILD/opt/rustc-1.74.0/bin/