Make scripts can accept relative paths.
diff --git a/build/tools/build-gcc.sh b/build/tools/build-gcc.sh
index 5cd3411..55504a7 100755
--- a/build/tools/build-gcc.sh
+++ b/build/tools/build-gcc.sh
@@ -84,8 +84,8 @@
set_parameters ()
{
- SRC_DIR="$1"
- NDK_DIR="$2"
+ SRC_DIR=`cd $1; pwd`
+ NDK_DIR=`cd $2; pwd`
TOOLCHAIN="$3"
# Check source directory
diff --git a/build/tools/build-llvm.sh b/build/tools/build-llvm.sh
index 0b98c91..b80db6f 100755
--- a/build/tools/build-llvm.sh
+++ b/build/tools/build-llvm.sh
@@ -69,8 +69,8 @@
set_parameters ()
{
- SRC_DIR="$1"
- NDK_DIR="$2"
+ SRC_DIR=`cd $1; pwd`
+ NDK_DIR=`cd $2; pwd`
TOOLCHAIN="$3"
# Check source directory