build.rs cleanup avoid linking ssl crypto and pthread

This commit is contained in:
Ivan Folgueira Bande 2024-12-24 23:37:03 +01:00
parent 35bacf4316
commit e25050e635
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -66,19 +66,11 @@ fn generate_bindgen_code(project_dir: &Path) {
);
println!("cargo:rustc-link-lib=static=backtrace");
println!("cargo:rustc-link-lib=ssl");
println!("cargo:rustc-link-lib=crypto");
cc::Build::new()
.file("src/cmd.c") // Compile the C file
.compile("cmditems"); // Compile it as a library
println!("cargo:rustc-link-lib=static=cmditems");
// TODO: Determine if pthread is automatically included
println!("cargo:rustc-link-lib=pthread");
// TODO: Test in other architectures
// Generate waku bindings with bindgen
let bindings = bindgen::Builder::default()
// The input header we would like to generate