android-config: Use absolute path for compilers
This commit is contained in:
parent
33601f1a51
commit
5005369f71
|
@ -27,9 +27,9 @@ if [ -z "$ANDROID_HOME" ]; then
|
||||||
echo 'No $ANDROID_HOME specified.'
|
echo 'No $ANDROID_HOME specified.'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
PREFIX=$ANDROID_HOME/usr/local
|
PREFIX="$ANDROID_HOME"/usr/local
|
||||||
TOOLCHAIN=$ANDROID_HOME/toolchain
|
TOOLCHAIN="$ANDROID_HOME"/toolchain
|
||||||
PATH=$TOOLCHAIN/bin:$PATH
|
PATH="$TOOLCHAIN"/bin:"$PATH"
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
|
@ -40,8 +40,8 @@ PATH=$TOOLCHAIN/bin:$PATH
|
||||||
--disable-python-bindings \
|
--disable-python-bindings \
|
||||||
--disable-examples \
|
--disable-examples \
|
||||||
--enable-werror \
|
--enable-werror \
|
||||||
CC=clang \
|
CC="$TOOLCHAIN"/bin/clang \
|
||||||
CXX=clang++ \
|
CXX="$TOOLCHAIN"/bin/clang++ \
|
||||||
CPPFLAGS="-fPIE -I$PREFIX/include" \
|
CPPFLAGS="-fPIE -I$PREFIX/include" \
|
||||||
PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig" \
|
PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig" \
|
||||||
LDFLAGS="-fPIE -pie -L$PREFIX/lib"
|
LDFLAGS="-fPIE -pie -L$PREFIX/lib"
|
||||||
|
|
Loading…
Reference in New Issue