We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e493197 commit c99203eCopy full SHA for c99203e
src/lib.rs
@@ -328,7 +328,8 @@ impl Config {
328
}
329
330
fn command(&self, name: &str, args: &[&str]) -> Command {
331
- let mut cmd = Command::new("pkg-config");
+ let exe = env::var("PKG_CONFIG").unwrap_or(String::from("pkg-config"));
332
+ let mut cmd = Command::new(exe);
333
if self.is_static(name) {
334
cmd.arg("--static");
335
tests/test.rs
@@ -11,7 +11,7 @@ static LOCK: StaticMutex = MUTEX_INIT;
11
12
fn reset() {
13
for (k, _) in env::vars() {
14
- if k.contains("PKG_CONFIG") || k.contains("DYNAMIC") ||
+ if k.contains("DYNAMIC") ||
15
k.contains("STATIC") {
16
env::remove_var(&k);
17
0 commit comments