From: Rust Maintainers Date: Sun, 12 Mar 2017 03:15:33 +0000 (+0000) Subject: d-fix-configure-for-deb-arches X-Git-Tag: archive/raspbian/1.17.0+dfsg2-8+rpi1~2^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=75c7ed17b582a4500c23f53a9f4f3824fac4cf37;p=rustc.git d-fix-configure-for-deb-arches Gbp-Pq: Name d-fix-configure-for-deb-arches.patch --- diff --git a/configure b/configure index d90f050631..1d13c626aa 100755 --- a/configure +++ b/configure @@ -514,8 +514,19 @@ case $CFG_CPUTYPE in ;; armv7l | armv8l) - CFG_CPUTYPE=armv7 - CFG_OSTYPE="${CFG_OSTYPE}eabihf" + case $DEB_HOST_ARCH in + armhf) + CFG_CPUTYPE=armv7 + CFG_OSTYPE="${CFG_OSTYPE}eabihf" + ;; + armel) + CFG_CPUTYPE=arm + CFG_OSTYPE="${CFG_OSTYPE}eabi" + ;; + *) + err "unknown DEB_HOST_ARCH $DEB_HOST_ARCH for armv7l/armv8l cpu" + ;; + esac ;; aarch64)