Skip to content

Commit bbe157b

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. This makes Cross.toml completely unnecessary.
1 parent dd578cb commit bbe157b

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

Cargo.lock

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
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"

Cross.toml

-5
This file was deleted.

0 commit comments

Comments
 (0)