diff --git a/src/lib.rs b/src/lib.rs index 5c25917..5439c01 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -334,8 +334,7 @@ impl Config { cmd.arg("--static"); } cmd.args(args) - .args(&self.extra_args) - .env("PKG_CONFIG_ALLOW_SYSTEM_LIBS", "1"); + .args(&self.extra_args); if let Some(ref version) = self.atleast_version { cmd.arg(&format!("{} >= {}", name, version)); } else {