Mercurial > mplayer.hg
changeset 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 | 52545582f44d |
children | fd4a27bd4ed4 |
files | configure |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
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 # ---