ANDROID: Set a default path for PKG_CONFIG_LIBDIR
This commit is contained in:
parent
954e442827
commit
bdf4ab5c06
1 changed files with 17 additions and 6 deletions
23
configure
vendored
23
configure
vendored
|
@ -1985,22 +1985,30 @@ if test "$_host_os" = android; then
|
|||
_android_toolchain="$ANDROID_TOOLCHAIN"
|
||||
fi
|
||||
|
||||
case $_host_cpu in
|
||||
arm | i686)
|
||||
_android_version=16
|
||||
;;
|
||||
aarch64 | x86_64)
|
||||
# Platform version 21 is needed as earlier versions of platform do not support this architecture.
|
||||
_android_version=21
|
||||
;;
|
||||
esac
|
||||
|
||||
# If CXX environment variable is not set, try to set known to work defaults
|
||||
if test -z "$CXX"; then
|
||||
case $_host_cpu in
|
||||
arm)
|
||||
_android_target="armv7a-linux-androideabi16"
|
||||
_android_target="armv7a-linux-androideabi$_android_version"
|
||||
;;
|
||||
aarch64)
|
||||
# Platform version 21 is needed as earlier versions of platform do not support this architecture.
|
||||
_android_target="aarch64-linux-android21"
|
||||
_android_target="aarch64-linux-android$_android_version"
|
||||
;;
|
||||
i686)
|
||||
_android_target="i686-linux-android16"
|
||||
_android_target="i686-linux-android$_android_version"
|
||||
;;
|
||||
x86_64)
|
||||
# Platform version 21 is needed as earlier versions of platform do not support this architecture.
|
||||
_android_target="x86_64-linux-android21"
|
||||
_android_target="x86_64-linux-android$_android_version"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -2018,6 +2026,9 @@ if test "$_host_os" = android; then
|
|||
if test -z "$STRINGS"; then
|
||||
STRINGS="$_android_toolchain/bin/$_host_alias-strings"
|
||||
fi
|
||||
if test -z "$PKG_CONFIG_LIBDIR"; then
|
||||
export PKG_CONFIG_LIBDIR="$_android_toolchain/sysroot/usr/lib/$_host_alias/$_android_version/pkgconfig"
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue