Useful to select e.g. between mingw32, 32-bit mingw64 and 64-bit mingw64 toolchains, which all are not cross-compilation toolchains.
Signed-off-by: Reimar Döffinger <reimar.doeffin...@gmx.de> --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 9085200..5c1cbca 100755 --- a/configure +++ b/configure @@ -279,6 +279,10 @@ Toolchain options: --cpu=CPU select the minimum required CPU (affects instruction selection, may crash on older CPUs) --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix] + --toolchain-prefix=PRE use PRE for compilation tools [$toolchain_prefix] + but do not assume cross-compilation and also replace + host tools. + If --cross-prefix is also given, use only for host tools. --progs-suffix=SUFFIX program name suffix [] --enable-cross-compile assume a cross-compiler is used --sysroot=PATH root of cross-build tree @@ -1963,6 +1967,7 @@ CMDLINE_SET=" target_samples tempprefix toolchain + toolchain_prefix valgrind yasmexe " @@ -2977,6 +2982,8 @@ if enabled cross_compile; then die "Must specify target arch and OS when cross-compiling" fi +test -n "$cross_prefix" || cross_prefix="$toolchain_prefix" + ar_default="${cross_prefix}${ar_default}" cc_default="${cross_prefix}${cc_default}" cxx_default="${cross_prefix}${cxx_default}" @@ -3076,6 +3083,7 @@ esac set_default arch cc cxx doxygen pkg_config ranlib strip sysinclude \ target_exec target_os yasmexe +host_cc_default=${toolchain_prefix}${host_cc_default} enabled cross_compile || host_cc_default=$cc set_default host_cc -- 2.2.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel