Skip to content

Commit

Permalink
Fix android-shell.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Mar 10, 2017
1 parent c9df405 commit 4cd8404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/android-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ROOT=`dirname $PWD/$0`
OS=`uname|tr 'A-Z' 'a-z'`
[ "${OS}" = macosx ] && OS=darwin

if [ ! -x /work ]
if [ ! -x /work ]; then
echo "Building android locally with NDK instead of dockcross..."
# TODO: autodetect or gtfo
if [ -f ~/.r2androidrc ]; then
Expand All @@ -62,6 +62,7 @@ if [ ! -x /work ]
fi
[ -z "${NDK}" ] && NDK="${HOME}/Downloads/android-ndk-r7b"
fi
fi


#if [ ! -d "${SDK}/tools" ]; then
Expand Down Expand Up @@ -100,7 +101,6 @@ if [ "${BUILD}" != 0 ]; then
#PATH=$SDK/tools:$SDK/platform-tools:$NDK:${NDKPATH_X86}:${NDKPATH_ARM}:${NDKPATH_MIPS64}:${NDKPATH_AARCH64}:${NDKPATH_MIPS}:$PATH
PATH=$NDK:${NDKPATH_X86}:${NDKPATH_ARM}:${NDKPATH_MIPS64}:${NDKPATH_AARCH64}:${NDKPATH_MIPS}:$PATH
export PATH
fi
export CFLAGS
export NDK
export NDK_ARCH
Expand Down

0 comments on commit 4cd8404

Please sign in to comment.