We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b35ac1 commit f7d24adCopy full SHA for f7d24ad
1 file changed
memoria/Cross.toml
@@ -1,2 +1,10 @@
1
[target.aarch64-unknown-linux-gnu]
2
-pre-build = ["apt-get update && apt-get install -y pkg-config libssl-dev"]
+# Vendored OpenSSL needs a C compiler, perl, and make (perl/make already in cross image).
3
+# Do NOT install system libssl-dev — the cross image (Xenial) has 1.0.2 which is
4
+# incompatible with openssl-sys. We use openssl = { features = ["vendored"] } instead.
5
+
6
+[build.env]
7
+# Pass these into the cross Docker container so vendored OpenSSL build works:
8
+# - OPENSSL_NO_PKG_CONFIG: skip system libssl, force build from source
9
+# - SQLX_OFFLINE: don't require a live database for compile-time query checks
10
+passthrough = ["OPENSSL_NO_PKG_CONFIG", "SQLX_OFFLINE"]
0 commit comments