diff options
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure index 0c040455ae..ff05747853 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -748,7 +748,15 @@ androidndkcc() | |||
748 | fi | 748 | fi |
749 | 749 | ||
750 | buildhost=$(uname -s | tr "[:upper:]" "[:lower:]") | 750 | buildhost=$(uname -s | tr "[:upper:]" "[:lower:]") |
751 | buildhost="${buildhost}-$(uname -m)" | 751 | # the prebuild android NDK only supports intel architecture anyway, so we can take shortcuts |
752 | case $(getconf LONG_BIT) in | ||
753 | 32) | ||
754 | buildhost="${buildhost}-x86" | ||
755 | ;; | ||
756 | 64) | ||
757 | buildhost="${buildhost}-x86_64" | ||
758 | ;; | ||
759 | esac | ||
752 | 760 | ||
753 | GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` | 761 | GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` |
754 | LDOPTS="$LDOPTS -ldl -llog" | 762 | LDOPTS="$LDOPTS -ldl -llog" |