diff --git a/rinit/build.rs b/rinit/build.rs index 3aa51aa..883deb9 100644 --- a/rinit/build.rs +++ b/rinit/build.rs @@ -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"); + } }