From da465daa20a72679e1d7cfe2d7b5e0afe7f197d1 Mon Sep 17 00:00:00 2001 From: Seoxi Ryouko Date: Mon, 12 May 2025 02:31:50 -0400 Subject: [PATCH] Using pkg-config rather than MagickCore-config, to work on FreeBSD --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index c011a23..b8d3e49 100644 --- a/build.rs +++ b/build.rs @@ -58,7 +58,7 @@ fn main() { .arg("--cppflags") .output() } else { - Command::new("MagickCore-config").arg("--cppflags").output() + Command::new("pkg-config").args(["--cflags", "--libs", "MagickCore"]).output() }; if let Ok(ok_cppflags) = check_cppflags { let cppflags = ok_cppflags.stdout;