From: Richael Zhuang Date: Mon, 2 Apr 2018 08:10:21 +0000 (+0800) Subject: Add the support for some missing cross-compile tool chains in zlib-ng X-Git-Tag: 1.9.9-b1~629 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a3dcdeb064c0ad41e0b0397ae23099c81e6f26c;p=thirdparty%2Fzlib-ng.git Add the support for some missing cross-compile tool chains in zlib-ng Change-Id: I7b5c9acd0b3e43079e59c3da9eac161475408f83 Signed-off-by: Richael Zhuang --- diff --git a/configure b/configure index 71e2ff601..2a10f49de 100755 --- 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}"