Skip to content

Commit

Permalink
remove native from cargo:rustc-link-lib
Browse files Browse the repository at this point in the history
native is only defined for rustc-link-search

https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib

Having it present in rustc-link-lib results in build errors.
  • Loading branch information
rcgoodfellow committed Aug 25, 2021
1 parent 7da80fa commit e79f612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zfs-core-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn main() {
if let Some(v) = lzc_libdir {
println!("cargo:rustc-link-search=native={}", v.to_str().unwrap());
}
println!("cargo:rustc-link-lib=native=zfs_core");
println!("cargo:rustc-link-lib=zfs_core");
}
}

Expand Down

0 comments on commit e79f612

Please sign in to comment.