d-fix-configure-for-deb-arches
authorRust Maintainers <pkg-rust-maintainers@lists.alioth.debian.org>
Sat, 8 Jul 2017 23:35:25 +0000 (00:35 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 8 Jul 2017 23:35:25 +0000 (00:35 +0100)
Gbp-Pq: Name d-fix-configure-for-deb-arches.patch

configure

index 79f1d6f149e3ed39678db0daeaaf1e26be84be4a..9e80ea1098e6b06bb26cb6ad26d6c4d4780c9eea 100755 (executable)
--- 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)