Some checks failed
Build deb-bootupd Artifacts / build (push) Failing after 8m34s
- Add build.rs to handle ZSTD library linking via pkg-config - Add pkg-config as build dependency in Cargo.toml - Clean debian/install to avoid conflicts with manual installation - ZSTD linking now works properly for OpenSSL with ZSTD support - Local Debian package build succeeds
9 lines
297 B
Rust
9 lines
297 B
Rust
fn main() {
|
|
// Link against ZSTD library since OpenSSL was compiled with ZSTD support
|
|
if pkg_config::Config::new().probe("libzstd").is_ok() {
|
|
println!("cargo:rustc-link-lib=zstd");
|
|
}
|
|
|
|
// Re-run if build script changes
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
}
|