Skip to content

Commit

Permalink
Run make libseccomp.a in build.rs to make cargo build work
Browse files Browse the repository at this point in the history
  • Loading branch information
szatanjl committed Oct 7, 2024
1 parent 9e3bfbf commit b37d173
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rinit/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
use std::process::Command;

fn main() {
println!("cargo:rustc-link-search={}/extern-libs", env!("CARGO_MANIFEST_DIR"));
let status = Command::new("make").args(&["extern-libs/libseccomp.a"]).status().unwrap();
if !status.success() {
panic!("Error building libseccomp.a library");
}
}

0 comments on commit b37d173

Please sign in to comment.