summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-07 00:11:17 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-17 01:45:14 +0100
commit63977ac38f902e2d00e6fca80ca5ab48276779c7 (patch)
tree263fbbdcfd901164bf047a2b795b20e1f6110549 /configure
parentde5e71fb1b2caa1d3925fa39d4242dc620f4dd8e (diff)
configure: Use "clang" as cc_default for Android.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index b062b6318e..be49c19b88 100755
--- a/configure
+++ b/configure
@@ -4129,6 +4129,11 @@ if test -n "$cross_prefix"; then
enable cross_compile
fi
+set_default target_os
+if test "$target_os" = android; then
+ cc_default="clang"
+fi
+
ar_default="${cross_prefix}${ar_default}"
cc_default="${cross_prefix}${cc_default}"
cxx_default="${cross_prefix}${cxx_default}"
@@ -4145,7 +4150,7 @@ windres_default="${cross_prefix}${windres_default}"
sysinclude_default="${sysroot}/usr/include"
set_default arch cc cxx doxygen pkg_config ranlib strip sysinclude \
- target_exec target_os x86asmexe nvcc
+ target_exec x86asmexe nvcc
enabled cross_compile || host_cc_default=$cc
set_default host_cc