From 5005369f715ca984393b943c0c08e08f5f45cf04 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 13 Sep 2015 00:43:31 +0900 Subject: [PATCH] android-config: Use absolute path for compilers --- android-config | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/android-config b/android-config index 9828822e..e3a88179 100755 --- a/android-config +++ b/android-config @@ -27,9 +27,9 @@ if [ -z "$ANDROID_HOME" ]; then echo 'No $ANDROID_HOME specified.' exit 1 fi -PREFIX=$ANDROID_HOME/usr/local -TOOLCHAIN=$ANDROID_HOME/toolchain -PATH=$TOOLCHAIN/bin:$PATH +PREFIX="$ANDROID_HOME"/usr/local +TOOLCHAIN="$ANDROID_HOME"/toolchain +PATH="$TOOLCHAIN"/bin:"$PATH" ./configure \ --disable-shared \ @@ -40,8 +40,8 @@ PATH=$TOOLCHAIN/bin:$PATH --disable-python-bindings \ --disable-examples \ --enable-werror \ - CC=clang \ - CXX=clang++ \ + CC="$TOOLCHAIN"/bin/clang \ + CXX="$TOOLCHAIN"/bin/clang++ \ CPPFLAGS="-fPIE -I$PREFIX/include" \ PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig" \ LDFLAGS="-fPIE -pie -L$PREFIX/lib"