Skip to content

Commit 9640d4e

Browse files
committed
Fix for Android NDK r11c
Seems like `RELEASE.TXT` is gone, so `arch` is now used to determine if we're running on 64bit or not. I'm unsure how to properly check for this on Windows, though.
1 parent 9bd2fa3 commit 9640d4e

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

setCrossEnvironment-armeabi-v7a.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ IFS='
77

88
MYARCH=linux-x86
99
if uname -s | grep -i "linux" > /dev/null ; then
10-
MYARCH=linux-x86
10+
MYARCH=linux-`arch`
1111
fi
1212
if uname -s | grep -i "darwin" > /dev/null ; then
1313
MYARCH=darwin-x86_64
@@ -20,8 +20,6 @@ NDK=`which ndk-build`
2020
NDK=`dirname $NDK`
2121
#NDK=`readlink -f $NDK`
2222

23-
grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64"
24-
2523
[ -z "$NDK" ] && { echo "You need Android NDK r8 or newer installed to run this script" ; exit 1 ; }
2624
GCCPREFIX=arm-linux-androideabi
2725
GCCVER=4.9

setCrossEnvironment-armeabi.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ IFS='
55

66
MYARCH=linux-x86
77
if uname -s | grep -i "linux" > /dev/null ; then
8-
MYARCH=linux-x86
8+
MYARCH=linux-`arch`
99
fi
1010
if uname -s | grep -i "darwin" > /dev/null ; then
1111
MYARCH=darwin-x86_64
@@ -18,8 +18,6 @@ NDK=`which ndk-build`
1818
NDK=`dirname $NDK`
1919
#NDK=`readlink -f $NDK`
2020

21-
grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64"
22-
2321
[ -z "$NDK" ] && { echo "You need Android NDK r8 or newer installed to run this script" ; exit 1 ; }
2422
GCCPREFIX=arm-linux-androideabi
2523
GCCVER=4.9

setCrossEnvironment-mips.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ IFS='
55

66
MYARCH=linux-x86
77
if uname -s | grep -i "linux" > /dev/null ; then
8-
MYARCH=linux-x86
8+
MYARCH=linux-`arch`
99
fi
1010
if uname -s | grep -i "darwin" > /dev/null ; then
1111
MYARCH=darwin-x86_64
@@ -18,8 +18,6 @@ NDK=`which ndk-build`
1818
NDK=`dirname $NDK`
1919
#NDK=`readlink -f $NDK`
2020

21-
grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64"
22-
2321
[ -z "$NDK" ] && { echo "You need Android NDK r8 or newer installed to run this script" ; exit 1 ; }
2422
GCCPREFIX=mipsel-linux-android
2523
GCCVER=4.9

setCrossEnvironment-x86.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ IFS='
55

66
MYARCH=linux-x86
77
if uname -s | grep -i "linux" > /dev/null ; then
8-
MYARCH=linux-x86
8+
MYARCH=linux-`arch`
99
fi
1010
if uname -s | grep -i "darwin" > /dev/null ; then
1111
MYARCH=darwin-x86_64
@@ -18,8 +18,6 @@ NDK=`which ndk-build`
1818
NDK=`dirname $NDK`
1919
#NDK=`readlink -f $NDK`
2020

21-
grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64"
22-
2321
[ -z "$NDK" ] && { echo "You need Android NDK r8 or newer installed to run this script" ; exit 1 ; }
2422
GCCPREFIX=i686-linux-android
2523
GCCVER=4.9

0 commit comments

Comments
 (0)