Skip to content

Commit cd3ccca

Browse files
authored
Fix usage of target-specific PKG_CONFIG
Closes #118
1 parent 45d768b commit cd3ccca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ impl Config {
394394

395395
fn command(&self, name: &str, args: &[&str]) -> Command {
396396
let exe = self
397-
.env_var_os("PKG_CONFIG")
397+
.targetted_env_var("PKG_CONFIG")
398398
.unwrap_or_else(|| OsString::from("pkg-config"));
399399
let mut cmd = Command::new(exe);
400400
if self.is_static(name) {

0 commit comments

Comments
 (0)