From 490d521af339259f738df997d677ecbb3bf7f169 Mon Sep 17 00:00:00 2001 From: Travis Finkenauer Date: Fri, 22 Apr 2022 00:00:52 +0000 Subject: [PATCH] netbsd: link to libkvm to fix build error NetBSD requires linking to the libkvm library to use functions like kvm_openfiles(). --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index ddbc63a..a5fe831 100644 --- a/build.rs +++ b/build.rs @@ -32,6 +32,7 @@ fn main() { builder.file("c/openbsd.c") }, "netbsd" => { + println!("cargo:rustc-flags=-l kvm"); println!("cargo:rustc-flags=-l pthread"); builder.file("c/netbsd.c") },