summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Cherkashin <148123+andoriyu@users.noreply.github.com>2021-04-18 16:13:04 -0700
committerGitHub <noreply@github.com>2021-04-18 16:13:04 -0700
commitab89938c90f04edd36b4fbda9710b66554aa70d3 (patch)
tree701417695711694a165fc1a27480013c6b51e395
parentf6b3a7445b42fb064ea10c857f744798c048f87a (diff)
downloadrust-libzfs-ab89938c90f04edd36b4fbda9710b66554aa70d3.zip
Link linux-compat library on freebsd
-rw-r--r--zfs-core-sys/build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/zfs-core-sys/build.rs b/zfs-core-sys/build.rs
index da353d9..4a665d0 100644
--- a/zfs-core-sys/build.rs
+++ b/zfs-core-sys/build.rs
@@ -8,4 +8,7 @@ fn main() {
}
println!("cargo:rustc-link-lib=nvpair");
+ if cfg!(target_os="freebsd") {
+ println!("cargo:rustc-link-lib=zutil");
+ };
}