aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-11-12 14:33:49 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2013-11-12 14:37:08 +0800
commitd8276e9ad1bdc4f3209de6ab28eba0d61e69e3ee (patch)
tree4f839c01a8714dd2aa655ba919e1684b3be3eb7e
parent16c497d3d2ad780c0f54f864a1e8918ce83d5581 (diff)
downloadndk-d8276e9ad1bdc4f3209de6ab28eba0d61e69e3ee.tar.gz
Fix ndk-build fails in cygwin if NDK package is referenced via symlink
Fix similar issue in ndk-gdb* as well. Internal BUG ref 11445081 Change-Id: Ia6abb06d066de780be7090ba3aa20425f0cc5559
-rwxr-xr-xndk-build2
-rwxr-xr-xndk-gdb2
-rwxr-xr-xndk-gdb-py2
3 files changed, 3 insertions, 3 deletions
diff --git a/ndk-build b/ndk-build
index 95520f583..62d6dc8c4 100755
--- a/ndk-build
+++ b/ndk-build
@@ -38,7 +38,7 @@
# ./ndk-build -C <project-path>
#
PROGDIR=`dirname $0`
-PROGDIR=`cd $PROGDIR && pwd`
+PROGDIR=`cd $PROGDIR && pwd -P`
# Check if absolute NDK path contain space
#
diff --git a/ndk-gdb b/ndk-gdb
index 2faa7df4c..8cc460a7d 100755
--- a/ndk-gdb
+++ b/ndk-gdb
@@ -25,7 +25,7 @@
# after doing ndk-build && ant install && <start-application-on-device>
#
PROGDIR=`dirname $0`
-PROGDIR=`cd $PROGDIR && pwd`
+PROGDIR=`cd $PROGDIR && pwd -P`
# Check if absolute NDK path contain space
#
diff --git a/ndk-gdb-py b/ndk-gdb-py
index 11643d450..b2001b822 100755
--- a/ndk-gdb-py
+++ b/ndk-gdb-py
@@ -1,7 +1,7 @@
#!/bin/sh
PROGDIR=`dirname $0`
-PROGDIR=`cd $PROGDIR && pwd`
+PROGDIR=`cd $PROGDIR && pwd -P`
# Check if absolute NDK path contain space
#