Skip to content

Commit

Permalink
Fix usage of target-specific PKG_CONFIG
Browse files Browse the repository at this point in the history
Closes #118
  • Loading branch information
sfackler authored Sep 16, 2021
1 parent 45d768b commit cd3ccca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cd3ccca

Please sign in to comment.