From 384b0202c040034ba1e8f2e3789a01e4b05a6a2b Mon Sep 17 00:00:00 2001 From: djsollen Date: Thu, 17 Jul 2014 14:00:57 -0700 Subject: Fix mac NDK builds R=jvanverth@google.com, scroggo@google.com Author: djsollen@google.com Review URL: https://codereview.chromium.org/401613005 --- platform_tools/android/bin/utils/setup_toolchain.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'platform_tools/android') diff --git a/platform_tools/android/bin/utils/setup_toolchain.sh b/platform_tools/android/bin/utils/setup_toolchain.sh index 4476bb8a38..ef491506fc 100755 --- a/platform_tools/android/bin/utils/setup_toolchain.sh +++ b/platform_tools/android/bin/utils/setup_toolchain.sh @@ -39,7 +39,7 @@ function default_toolchain() { TOOLCHAIN_DIR=${SCRIPT_DIR}/../toolchains if [ $(uname) == "Darwin" ]; then verbose "Using Mac toolchain." - TOOLCHAIN_TYPE=ndk-r$NDK_REV-$ANDROID_ARCH-mac_v$API_LEVEL + TOOLCHAIN_TYPE=ndk-r$NDK_REV-$ANDROID_ARCH-darwin_v$API_LEVEL else verbose "Using Linux toolchain." TOOLCHAIN_TYPE=ndk-r$NDK_REV-$ANDROID_ARCH-linux_v$API_LEVEL @@ -98,4 +98,5 @@ exportVar STRIP "$ANDROID_TOOLCHAIN_PREFIX-strip" # This is required to build using ninja on a Mac. ln -sf $ANDROID_TOOLCHAIN_PREFIX-nm $ANDROID_TOOLCHAIN/nm ln -sf $ANDROID_TOOLCHAIN_PREFIX-readelf $ANDROID_TOOLCHAIN/readelf +ln -sf $ANDROID_TOOLCHAIN_PREFIX-as $ANDROID_TOOLCHAIN/as exportVar PATH $ANDROID_TOOLCHAIN:$PATH -- cgit v1.2.3