diff --git a/nl-sys/build.rs b/nl-sys/build.rs index e1e1361..ce00bf6 100644 --- a/nl-sys/build.rs +++ b/nl-sys/build.rs @@ -13,7 +13,9 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -fn main() { +use std::fs; + +fn main() -> std::io::Result<()> { cc::Build::new().file("src/bridge.c").compile("bridge"); let dst = autotools::Config::new("libnl").reconf("-vi").build(); @@ -21,4 +23,8 @@ fn main() { println!("cargo:rustc-link-search=native={}/lib", dst.display()); println!("cargo:rustc-link-lib=static=nl-3"); println!("cargo:rustc-link-lib=static=nl-route-3"); + + fs::remove_file("libnl/configure~")?; + + Ok(()) }