File: debian-auto-cross-compile.patch

package info (click to toggle)
rust-pkg-config 0.3.32-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308 kB
  • sloc: ansic: 39; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -670,7 +670,11 @@
         } else {
             None
         };
-        let exe = pkg_config_exe.unwrap_or_else(|| OsString::from("pkg-config"));
+        let exe = pkg_config_exe.unwrap_or_else(|| {
+            self.env_var_os("DEB_HOST_GNU_TYPE")
+                .map(|mut t| {t.push(OsString::from("-pkg-config")); t})
+                .unwrap_or_else(|| OsString::from("pkg-config"))
+        });
 
         let mut cmd = self.command(exe, name, args);