+rust-pkg-config (0.3.17-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+ * Package pkg-config 0.3.17 from crates.io using debcargo 2.4.0
+
+ -- Ximin Luo <infinity0@debian.org> Thu, 5 Dec 2019 22:03:57 +0000
+
rust-pkg-config (0.3.17-1) unstable; urgency=medium
* Package pkg-config 0.3.17 from crates.io using debcargo 2.4.0
--- /dev/null
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -385,9 +385,11 @@
+ }
+
+ fn command(&self, name: &str, args: &[&str]) -> Command {
+- let exe = self
+- .env_var("PKG_CONFIG")
+- .unwrap_or_else(|_| String::from("pkg-config"));
++ let exe = self.env_var("PKG_CONFIG").unwrap_or_else(|_| {
++ self.env_var("DEB_HOST_GNU_TYPE")
++ .map(|t| t.to_string() + "-pkg-config")
++ .unwrap_or_else(|_| String::from("pkg-config"))
++ });
+ let mut cmd = Command::new(exe);
+ if self.is_static(name) {
+ cmd.arg("--static");