summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-06-11 14:54:59 +0000
committerUoti Urpala <uau@mplayer2.org>2011-07-06 09:53:07 +0300
commitb7406244482b3239342601995d77716d57cd5d71 (patch)
tree72281e5ac45346169abf9f4ff12d77d1f35a1504 /configure
parent55d4f6528cf2df2c108ed6ddcfe0247025bde988 (diff)
downloadmpv-b7406244482b3239342601995d77716d57cd5d71.tar.bz2
mpv-b7406244482b3239342601995d77716d57cd5d71.tar.xz
configure: when cross-compiling default host_cc to "cc"
Set host_cc after cross-compile check. This allows to set "cc" as a more sensible, almost always working default when cross-compiling instead of using the cross-compiler as host-cc which is just nonsense. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33580 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure b/configure
index 5d45eaa9d4..fd890c1e34 100755
--- a/configure
+++ b/configure
@@ -1466,10 +1466,6 @@ fi
echo "Detected operating system: $system_name"
echo "Detected host architecture: $host_arch"
-echocheck "host cc"
-test "$_host_cc" || _host_cc=$_cc
-echores $_host_cc
-
echocheck "cross compilation"
if test $_cross_compile = auto ; then
_cross_compile=yes
@@ -1481,8 +1477,13 @@ if test $_cross_compile = yes; then
tmp_run() {
return 0
}
+ test "$_host_cc" || _host_cc=cc
fi
+echocheck "host cc"
+test "$_host_cc" || _host_cc=$_cc
+echores $_host_cc
+
# ---
# now that we know what compiler should be used for compilation, try to find