Commit 1904704a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'faab8f9f'

* commit 'faab8f9f':
  configure: move cross_compile checks after the toolchain section

Conflicts:
	configure
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b37852c7 faab8f9f
...@@ -2995,13 +2995,6 @@ disabled logging && logfile=/dev/null ...@@ -2995,13 +2995,6 @@ disabled logging && logfile=/dev/null
echo "# $0 $FFMPEG_CONFIGURATION" > $logfile echo "# $0 $FFMPEG_CONFIGURATION" > $logfile
set >> $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" test -n "$valgrind" && toolchain="valgrind-memcheck"
case "$toolchain" in case "$toolchain" in
...@@ -3088,6 +3081,13 @@ case "$toolchain" in ...@@ -3088,6 +3081,13 @@ case "$toolchain" in
;; ;;
esac 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}" ar_default="${cross_prefix}${ar_default}"
cc_default="${cross_prefix}${cc_default}" cc_default="${cross_prefix}${cc_default}"
cxx_default="${cross_prefix}${cxx_default}" cxx_default="${cross_prefix}${cxx_default}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment