Add link to bug on cross-linker auto-detection
authorXimin Luo <infinity0@debian.org>
Thu, 7 Jun 2018 04:42:39 +0000 (21:42 -0700)
committerXimin Luo <infinity0@debian.org>
Thu, 7 Jun 2018 04:42:39 +0000 (21:42 -0700)
debian/rules

index 3fa7ce66344fd9564e85511389440b207a049a09..8f84caf7886aa008616172df6ec1814e7d2272e3 100755 (executable)
@@ -8,6 +8,7 @@ include /usr/share/rustc/architecture.mk
 # For cross-compiling; perhaps we should add this to dh-cargo or debcargo
 export PKG_CONFIG = $(DEB_HOST_GNU_TYPE)-pkg-config
 export PKG_CONFIG_ALLOW_CROSS = 1
+# Needed because of https://github.com/rust-lang/cargo/issues/4133
 RUSTFLAGS += -C linker=$(DEB_HOST_GNU_TYPE)-gcc
 # TODO: we cannot enable this until dh_shlibdeps works correctly; atm we get:
 # dpkg-shlibdeps: warning: can't extract name and version from library name 'libstd-XXXXXXXX.so'