From d5480df526b5a19ee2fcfce93b8121d2cdfb70ef Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Fri, 8 Feb 2019 14:41:07 -0600 Subject: [PATCH] fix auto-detection of cross compilation for bare-metal linaro compilers --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 81ab0402..c85421d6 100755 --- a/configure +++ b/configure @@ -268,7 +268,7 @@ if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then CFLAGS="${CFLAGS} -std=c99" # Re-check ARCH if the compiler is a cross-compiler. - if $CC -print-multiarch 1> /dev/null 2>&1; then + if $CC -print-multiarch && test -n "$($CC -print-multiarch)" 1> /dev/null 2>&1; then CC_ARCH=`$CC $CFLAGS -print-multiarch | sed 's/-.*//g'` else CC_ARCH=`$CC $CFLAGS -dumpmachine | sed 's/-.*//g'` -- 2.47.2