Skip to content

Commit

Permalink
Build and link with openssl statically
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
malor committed Nov 25, 2024
1 parent dd578cb commit 30a2312
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ tracing = "0.1.25"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
uuid = { version = "0.8.2", features = ["v4"] }
percent-encoding = "2.1.0"
openssl-sys = { version = "0.9.104", features = ["vendored"] }

[dev-dependencies]
tempfile = "3.2.0"
Expand Down

0 comments on commit 30a2312

Please sign in to comment.