deb-bootupd/build.rs
robojerk f30ced3551
Some checks failed
Build deb-bootupd Artifacts / build (push) Failing after 8m34s
Fix ZSTD linking with build script and clean debian/install
- 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
2025-08-10 13:27:12 -07:00

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");
}