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;