From cd3ccca7c3b89644e74b0217ef93c632efd8ed2a Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 16 Sep 2021 10:22:47 -0400 Subject: [PATCH] Fix usage of target-specific PKG_CONFIG Closes #118 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d9574dc..b2b7b58 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -394,7 +394,7 @@ impl Config { fn command(&self, name: &str, args: &[&str]) -> Command { let exe = self - .env_var_os("PKG_CONFIG") + .targetted_env_var("PKG_CONFIG") .unwrap_or_else(|| OsString::from("pkg-config")); let mut cmd = Command::new(exe); if self.is_static(name) {