]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add the support for some missing cross-compile tool chains in zlib-ng
authorRichael Zhuang <richael.zhuang@arm.com>
Mon, 2 Apr 2018 08:10:21 +0000 (16:10 +0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 20 May 2018 12:57:35 +0000 (14:57 +0200)
Change-Id: I7b5c9acd0b3e43079e59c3da9eac161475408f83
Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
configure

index 71e2ff60159a2b1896ac978cd0659798404fbb0b..2a10f49de912e981010ab4759ced815a2b1fae5a 100755 (executable)
--- a/configure
+++ b/configure
@@ -265,7 +265,7 @@ if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then
       if test $build32 -ne 1; then
         ARCH=$GCC_ARCH
       fi ;;
-    arm)
+    arm | armeb)
       if test "${uname}" = "eabi"; then
         # No ACLE support
         uname=arm
@@ -281,9 +281,20 @@ if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then
           ARCH=native
         fi
       fi ;;
-    aarch64)
+    armv8l)
+      if test $native -eq 0; then
+        ARCH=armv8-a
+      else
+        ARCH=native
+      fi ;;
+    aarch64 | aarch64_be)
       if test "${uname}" = "elf"; then
         uname=aarch64
+      fi
+      if test $native -eq 0; then
+        ARCH=aarch64
+      else
+        ARCH=native
       fi ;;
   esac
   CFLAGS="${CFLAGS--O3}"