Skip to content

Commit

Permalink
Fix for Android NDK r11c
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
neonichu committed Apr 20, 2016
1 parent 9bd2fa3 commit 9640d4e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions setCrossEnvironment-armeabi-v7a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ IFS='

MYARCH=linux-x86
if uname -s | grep -i "linux" > /dev/null ; then
MYARCH=linux-x86
MYARCH=linux-`arch`
fi
if uname -s | grep -i "darwin" > /dev/null ; then
MYARCH=darwin-x86_64
Expand All @@ -20,8 +20,6 @@ NDK=`which ndk-build`
NDK=`dirname $NDK`
#NDK=`readlink -f $NDK`

grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64"

[ -z "$NDK" ] && { echo "You need Android NDK r8 or newer installed to run this script" ; exit 1 ; }
GCCPREFIX=arm-linux-androideabi
GCCVER=4.9
Expand Down
4 changes: 1 addition & 3 deletions setCrossEnvironment-armeabi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ IFS='

MYARCH=linux-x86
if uname -s | grep -i "linux" > /dev/null ; then
MYARCH=linux-x86
MYARCH=linux-`arch`
fi
if uname -s | grep -i "darwin" > /dev/null ; then
MYARCH=darwin-x86_64
Expand All @@ -18,8 +18,6 @@ NDK=`which ndk-build`
NDK=`dirname $NDK`
#NDK=`readlink -f $NDK`

grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64"

[ -z "$NDK" ] && { echo "You need Android NDK r8 or newer installed to run this script" ; exit 1 ; }
GCCPREFIX=arm-linux-androideabi
GCCVER=4.9
Expand Down
4 changes: 1 addition & 3 deletions setCrossEnvironment-mips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ IFS='

MYARCH=linux-x86
if uname -s | grep -i "linux" > /dev/null ; then
MYARCH=linux-x86
MYARCH=linux-`arch`
fi
if uname -s | grep -i "darwin" > /dev/null ; then
MYARCH=darwin-x86_64
Expand All @@ -18,8 +18,6 @@ NDK=`which ndk-build`
NDK=`dirname $NDK`
#NDK=`readlink -f $NDK`

grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64"

[ -z "$NDK" ] && { echo "You need Android NDK r8 or newer installed to run this script" ; exit 1 ; }
GCCPREFIX=mipsel-linux-android
GCCVER=4.9
Expand Down
4 changes: 1 addition & 3 deletions setCrossEnvironment-x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ IFS='

MYARCH=linux-x86
if uname -s | grep -i "linux" > /dev/null ; then
MYARCH=linux-x86
MYARCH=linux-`arch`
fi
if uname -s | grep -i "darwin" > /dev/null ; then
MYARCH=darwin-x86_64
Expand All @@ -18,8 +18,6 @@ NDK=`which ndk-build`
NDK=`dirname $NDK`
#NDK=`readlink -f $NDK`

grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64"

[ -z "$NDK" ] && { echo "You need Android NDK r8 or newer installed to run this script" ; exit 1 ; }
GCCPREFIX=i686-linux-android
GCCVER=4.9
Expand Down

0 comments on commit 9640d4e

Please sign in to comment.