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
diff --git a/ndk-build b/ndk-build
index 95520f5..62d6dc8 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 2faa7df..8cc460a 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 11643d4..b2001b8 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
#