Skip to content

Commit

Permalink
Use system-deps crate to look for librrd
Browse files Browse the repository at this point in the history
  • Loading branch information
andy128k committed Jun 4, 2024
1 parent 64e75b5 commit 342b4ec
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 288 deletions.
36 changes: 36 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions rrd-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ license = "GPLv2+"

[dependencies]
libc = "0.2"

[build-dependencies]
system-deps = "6.2.2"

[package.metadata.system-deps]
librrd = "^1.7"
4 changes: 1 addition & 3 deletions rrd-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
fn main() {
#[cfg(target_os = "freebsd")]
println!("cargo:rustc-link-search=native=/usr/local/lib");
println!("cargo:rustc-link-lib=rrd");
system_deps::Config::new().probe().unwrap();
}
Loading

0 comments on commit 342b4ec

Please sign in to comment.