From: Sebastian Pop Date: Fri, 21 Dec 2018 19:46:46 +0000 (-0600) Subject: fix configure for arm cross compilation X-Git-Tag: 1.9.9-b1~563 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e74ca87d335481a621fe41cabf8e15b8cd1d77c;p=thirdparty%2Fzlib-ng.git fix configure for arm cross compilation configure used to end with ARCH=x86_64 even when using a cross compiler targeting arm. When using a compiler targeting aarch64 there was no problem detecting a correct ARCH. --- diff --git a/configure b/configure index c1a15e80..8a8143b7 100755 --- a/configure +++ b/configure @@ -282,6 +282,11 @@ if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then ARCH=$GCC_ARCH fi ;; arm | armeb) + if test $native -eq 0; then + ARCH=arm + else + ARCH=native + fi if test "${uname}" = "eabi"; then # No ACLE support uname=arm @@ -293,8 +298,6 @@ if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then if test $buildacle -eq 1; then if test $native -eq 0; then ARCH=armv8-a+crc - else - ARCH=native fi fi ;; armv8l)