Skip to content

Commit 30a2312

Browse files
committed
Build and link with openssl statically
Dynamic linking with openssl does not work well with cross-compilation: the Docker image `cross` uses for aarch64 is based on Ubuntu Xenial that has libssl1.0.0, while the ones available on Raspbian (and other modern distros) are libssl1.1 and libssl3. Instead, we can use the feature of `openssl-sys` that allows to build and statically link openssl to avoid the hassle with shared object versions that vary between Linux distros.
1 parent dd578cb commit 30a2312

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ tracing = "0.1.25"
3232
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
3333
uuid = { version = "0.8.2", features = ["v4"] }
3434
percent-encoding = "2.1.0"
35+
openssl-sys = { version = "0.9.104", features = ["vendored"] }
3536

3637
[dev-dependencies]
3738
tempfile = "3.2.0"

0 commit comments

Comments
 (0)