Skip to content

Commit

Permalink
Merge pull request #121 from sfackler/patch-1
Browse files Browse the repository at this point in the history
Fix usage of target-specific PKG_CONFIG
  • Loading branch information
sdroege committed Sep 25, 2021
2 parents 45d768b + cd3ccca commit bc9ecfe
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 bc9ecfe

Please sign in to comment.