Mercurial > mplayer.hg
diff configure @ 33492:60b84f05d865
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.
author | reimar |
---|---|
date | Sat, 11 Jun 2011 14:54:59 +0000 |
parents | 7f9d2dd03e9a |
children | a2700dc1d5e6 |
line wrap: on
line diff
--- a/configure Sat Jun 11 13:52:11 2011 +0000 +++ b/configure Sat Jun 11 14:54:59 2011 +0000 @@ -1696,10 +1696,6 @@ 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 @@ -1711,7 +1707,12 @@ tmp_run() { return 0 } -fi + test "$_host_cc" || _host_cc=cc +fi + +echocheck "host cc" +test "$_host_cc" || _host_cc=$_cc +echores $_host_cc # ---