aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-28 18:08:59 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-28 18:08:59 +0000
commit5be2def19a5f91497d1e4b98c5e383dd36c1ecab (patch)
tree5a43f5143ffbb5d83fc76e821630d374e83af86b /platform_tools
parent0943f5f58abcff15c7583faafe44549b9a44f47a (diff)
Fix the ninja build on mac to use nm/readelf from the Android toolchain instead of the host system.
BUG=skia:2338 R=mtklein@google.com Author: djsollen@google.com Review URL: https://codereview.chromium.org/216793007 git-svn-id: http://skia.googlecode.com/svn/trunk@13985 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'platform_tools')
-rwxr-xr-xplatform_tools/android/bin/android_setup.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh
index 7a44317e87..d29a07048b 100755
--- a/platform_tools/android/bin/android_setup.sh
+++ b/platform_tools/android/bin/android_setup.sh
@@ -152,6 +152,13 @@ setup_toolchain() {
export RANLIB="$ANDROID_TOOLCHAIN_PREFIX-ranlib"
export OBJCOPY="$ANDROID_TOOLCHAIN_PREFIX-objcopy"
export STRIP="$ANDROID_TOOLCHAIN_PREFIX-strip"
+
+ # create symlinks for nm & readelf and add them to the path so that the ninja
+ # build uses them instead of attempting to use the one on the system
+ ln -sf $ANDROID_TOOLCHAIN_PREFIX-nm $ANDROID_TOOLCHAIN/nm
+ ln -sf $ANDROID_TOOLCHAIN_PREFIX-readelf $ANDROID_TOOLCHAIN/readelf
+ export PATH=$ANDROID_TOOLCHAIN:$PATH
+
}
# Helper function to configure the GYP defines to the appropriate values