From: Ximin Luo Date: Thu, 7 Jun 2018 04:42:39 +0000 (-0700) Subject: Add link to bug on cross-linker auto-detection X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~49 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ad523021a1a35d12156cf5749ade525695e1c768;p=cargo.git Add link to bug on cross-linker auto-detection --- diff --git a/debian/rules b/debian/rules index 3fa7ce663..8f84caf78 100755 --- a/debian/rules +++ b/debian/rules @@ -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'