Skip to content

Commit

Permalink
Add alternate cross prefix for compilers to support android build
Browse files Browse the repository at this point in the history
refs #13563
  • Loading branch information
mspieth committed Jan 20, 2020
1 parent 4948a8b commit 7b6d526
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mythtv/configure
Expand Up @@ -74,6 +74,7 @@ Standard options:
Advanced options (experts only):
--cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]
--cross-prefix-cc=PREFIX use PREFIX for compiler compilation tools [$cross_prefix_cc]
--enable-cross-compile assume a cross-compiler is used
--sysroot=PATH root of cross-build tree
--sysinclude=PATH location of cross-build system headers
Expand Down Expand Up @@ -2104,6 +2105,7 @@ CMDLINE_SET="
objcc
cpu
cross_prefix
cross_prefix_cc
custom_allocator
cxx
dep_cc
Expand Down Expand Up @@ -3307,10 +3309,16 @@ if enabled cross_compile; then
test -n "$arch" && test -n "$target_os" ||
die "Must specify target arch (--arch) and OS (--target-os) when cross-compiling"
fi
test -z "$cross_prefix_cc" && cross_prefix_cc="$cross_prefix"

test -n "$cc" && cc_default="$cc"
test -n "$cxx" && cxx_default="$cxx"
ar_default="${cross_prefix}${ar_default}"
cc_default="${cross_prefix}${cc_default}"
cxx_default="${cross_prefix}${cxx_default}"
cc_default="${cross_prefix_cc}${cc_default}"
cxx_default="${cross_prefix_cc}${cxx_default}"
cc="$cc_default"
cxx="$cxx_default"
echo "cc_default $cc_default , ${cross_prefix_cc}"
nm_default="${cross_prefix}${nm_default}"
pkg_config_default="${cross_prefix}${pkg_config_default}"
if ${cross_prefix}${ranlib_default} 2>&1 | grep -q "\-D "; then
Expand Down

0 comments on commit 7b6d526

Please sign in to comment.