diff options
author | cos <cos> | 2022-05-11 16:02:58 +0200 |
---|---|---|
committer | cos <cos> | 2022-05-11 16:02:58 +0200 |
commit | 4aacf4147dcdecccde2d86e3affc54acac24d93e (patch) | |
tree | c0fe6f09d3929b750913534550cf0e3010872586 | |
parent | 2d9b97f220926d95d91a187fbce1d61b8c2209c8 (diff) | |
download | rust-libzfs-feature/illumos_support.zip |
Use system default location for libzfs on illumosfeature/illumos_support
Makes compilation successful and running `cargo run --example sync-hang`
in zfs-core/ works. No further testing done.
-rw-r--r-- | zfs-core-sys/build.rs | 5 |
1 files 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> = 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 |