Skip to content

Commit c22478f

Browse files
noahgiftclaude
andcommitted
fix: add Cross.toml to install libssl-dev for Linux cross-compilation
pforge nightly Linux build fails with: Could not find openssl via pkg-config The system library `openssl` required by crate `openssl-sys` was not found Root cause: openssl-sys is pulled transitively via reqwest (default-tls → native-tls → openssl-sys) and pmcp's websocket (tokio-tungstenite). The `cross` Docker image used for cross-compilation doesn't have libssl-dev or pkg-config preinstalled. Fix: add Cross.toml with pre-build step to install libssl-dev + pkg-config in the cross container before build. Alternative (deferred): switch reqwest to rustls-tls and patch pmcp to avoid native-tls entirely. More work, no binary-size benefit given trueno-db also pulls openssl indirectly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 745f780 commit c22478f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Cross.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[build.env]
2+
passthrough = ["CARGO_TERM_COLOR"]
3+
4+
[target.x86_64-unknown-linux-gnu]
5+
pre-build = [
6+
"apt-get update && apt-get install -y libssl-dev pkg-config"
7+
]

0 commit comments

Comments
 (0)