Use an actually reliable method to determine 32 vs 64 bit

Change-Id: Idba256ae66e67efa7a03f3817bc588e0b4ccd4ba
This commit is contained in:
Frank Gevaerts 2016-05-25 13:40:01 +02:00
parent 98bd2231ec
commit 9327885d14

10
tools/configure vendored
View file

@ -748,7 +748,15 @@ androidndkcc()
fi
buildhost=$(uname -s | tr "[:upper:]" "[:lower:]")
buildhost="${buildhost}-$(uname -m)"
# the prebuild android NDK only supports intel architecture anyway, so we can take shortcuts
case $(getconf LONG_BIT) in
32)
buildhost="${buildhost}-x86"
;;
64)
buildhost="${buildhost}-x86_64"
;;
esac
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
LDOPTS="$LDOPTS -ldl -llog"