rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.73k stars 391 forks source link

support musl cross compile #832

Open rmGFW opened 2 years ago

rmGFW commented 2 years ago
image

the libssl-dev is already installed on my container , but it still failed

joshtriplett commented 2 years ago

I'm currently successfully cross-compiling git2 from x86_64 to aarch64-unknown-linux-musl, and vice versa from aarch64 to x86_64-unknown-linux-musl, without issues.

Does your container have a version of libssl-dev built for musl? Does it have a pkg-config installed for musl that can find that libssl-dev? Before trying to get git2-rs's build script to work, try just invoking your cross pkg-config to confirm it can find libssl-dev.

Does it work if you use the vendored-openssl and vendored-libgit2 options?

TaurusM commented 1 year ago

Does this issue resolved?