From 4aacf4147dcdecccde2d86e3affc54acac24d93e Mon Sep 17 00:00:00 2001 From: cos Date: Wed, 11 May 2022 16:02:58 +0200 Subject: Use system default location for libzfs on illumos Makes compilation successful and running `cargo run --example sync-hang` in zfs-core/ works. No further testing done. --- zfs-core-sys/build.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zfs-core-sys/build.rs b/zfs-core-sys/build.rs index e82f09d..db6efb7 100644 --- a/zfs-core-sys/build.rs +++ b/zfs-core-sys/build.rs @@ -60,8 +60,9 @@ fn main() { let lookup_with: Option = lookup_with.map(|v| v.to_str().unwrap().parse().unwrap()); lookup_with.unwrap_or_else(|| match target_os.as_str() { - // users have reported that this is required for freebsd. I have not tested it. - "freebsd" => Lookup::Link, + // Users have reported that this is required for freebsd and illumos. Not tested by + // Cody P Schafer. + "freebsd" | "illumos" => Lookup::Link, // openzfs on osx has the `libzfs_core.pc` file, installed into // `/usr/local/zfs/lib/pkgconfig`. Users _must_ ensure this is part of their -- cgit v1.2.3