Use an actually reliable method to determine 32 vs 64 bit
Change-Id: Idba256ae66e67efa7a03f3817bc588e0b4ccd4ba
This commit is contained in:
parent
98bd2231ec
commit
9327885d14
1 changed files with 9 additions and 1 deletions
10
tools/configure
vendored
10
tools/configure
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue