aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-09-16 22:06:53 +0100
committerMans Rullgard <mans@mansr.com>2012-09-18 23:43:05 +0100
commitaeeb782c2ab6be783f7658dfccf11fa89b33566c (patch)
treef01fef3c7eb288ff6612519fac971f4380221373
parente772f9faec0747715462d801e47058a31133d548 (diff)
downloadffmpeg-aeeb782c2ab6be783f7658dfccf11fa89b33566c.tar.gz
configure: add --toolchain option
This allows creating canned shorthands for common combinations of cc, ld etc. Signed-off-by: Mans Rullgard <mans@mansr.com>
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 74dbb6cdcc..2d400c0ced 100755
--- a/configure
+++ b/configure
@@ -205,6 +205,7 @@ Advanced options (experts only):
--target-os=OS compiler targets OS [$target_os]
--target-exec=CMD command to run executables on target
--target-path=DIR path to view of build directory on target
+ --toolchain=NAME set tool defaults according to NAME
--nm=NM use nm tool
--ar=AR use archive tool AR [$ar_default]
--as=AS use assembler AS [$as_default]
@@ -1327,6 +1328,7 @@ CMDLINE_SET="
target_exec
target_os
target_path
+ toolchain
"
CMDLINE_APPEND="
@@ -2038,6 +2040,17 @@ ranlib="${cross_prefix}${ranlib}"
sysinclude_default="${sysroot}/usr/include"
+case "$toolchain" in
+ msvc)
+ cc_default="c99wrap cl"
+ ld_default="c99wrap link"
+ nm_default="dumpbin -symbols"
+ ;;
+ ?*)
+ die "Unknown toolchain $toolchain"
+ ;;
+esac
+
set_default cc pkg_config sysinclude
enabled cross_compile || host_cc_default=$cc
set_default host_cc