summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-16 21:46:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-16 21:46:02 +0100
commit1904704a48b7ced8d5bb9091fe47a28b4bbe619b (patch)
treeabb8f01d10e35d98037605f34c6978db3f3e7bcd /configure
parentb37852c7d9bc81dface8c8b4143301af914ef9a4 (diff)
parentfaab8f9fcb4ffeb967dc6872c0f1e9da719106ce (diff)
Merge commit 'faab8f9fcb4ffeb967dc6872c0f1e9da719106ce'
* commit 'faab8f9fcb4ffeb967dc6872c0f1e9da719106ce': configure: move cross_compile checks after the toolchain section Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index 6d28db3c71..4b1d2d0807 100755
--- a/configure
+++ b/configure
@@ -2995,13 +2995,6 @@ disabled logging && logfile=/dev/null
echo "# $0 $FFMPEG_CONFIGURATION" > $logfile
set >> $logfile
-test -n "$cross_prefix" && enable cross_compile
-
-if enabled cross_compile; then
- test -n "$arch" && test -n "$target_os" ||
- die "Must specify target arch and OS when cross-compiling"
-fi
-
test -n "$valgrind" && toolchain="valgrind-memcheck"
case "$toolchain" in
@@ -3088,6 +3081,13 @@ case "$toolchain" in
;;
esac
+test -n "$cross_prefix" && enable cross_compile
+
+if enabled cross_compile; then
+ test -n "$arch" && test -n "$target_os" ||
+ die "Must specify target arch and OS when cross-compiling"
+fi
+
ar_default="${cross_prefix}${ar_default}"
cc_default="${cross_prefix}${cc_default}"
cxx_default="${cross_prefix}${cxx_default}"