From 635e8506c6cdaf4652c507eb88cbf4196e5879e5 Mon Sep 17 00:00:00 2001 From: Aleksei Voronov Date: Wed, 29 Nov 2023 11:08:17 +0100 Subject: [PATCH] Update cross-compile config to properly install openssl stuff This is based on the recipe in Cross wiki[^1] and seems to work [^1]: https://github.com/cross-rs/cross/wiki/Recipes#pre-build --- Cross.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cross.toml b/Cross.toml index acbc7ef..de4c8eb 100644 --- a/Cross.toml +++ b/Cross.toml @@ -2,4 +2,7 @@ default-target = "x86_64-unknown-linux-gnu" [target.x86_64-unknown-linux-gnu] -pre-build = ["apt-get install --assume-yes libssl-dev"] +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH" +]