Kaydet (Commit) a19b47b5 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Make the --with-android-ndk-toolchain-version switch optional

Default to 4.9.

Change-Id: I534b579fece83cfac79cfcd92f40bde5d2f801f5
üst 6acfc822
......@@ -285,10 +285,7 @@ AC_ARG_WITH(android-ndk,
AC_ARG_WITH(android-ndk-toolchain-version,
AS_HELP_STRING([--with-android-ndk-toolchain-version],
[Specify which toolchain version to use, of those present in the
Android NDK you are using. Mandatory if the NDK used has several
toolchain versions for the host architecture you are building for.
Possible values are 4.6, 4.8, clang3.3 and clang3.4. Only 4.8 has been
tested for real...]), ,)
Android NDK you are using. The default is 4.9 currently.]), ,)
AC_ARG_WITH(android-sdk,
AS_HELP_STRING([--with-android-sdk],
......@@ -331,6 +328,11 @@ if test -n "$with_android_ndk"; then
android_platform_prefix=$android_cpu
fi
if test -z "$with_android_ndk_toolchain_version"; then
# Default to gcc 4.9
with_android_ndk_toolchain_version=4.9
fi
case "$with_android_ndk_toolchain_version" in
4.6|4.7|4.8|4.9)
ANDROID_BINUTILS_DIR=$ANDROID_NDK_HOME/toolchains/$android_platform_prefix-$with_android_ndk_toolchain_version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment