diff options
| author | Marcus Comstedt | 2009-03-18 21:07:28 +0000 |
|---|---|---|
| committer | Marcus Comstedt | 2009-03-18 21:07:28 +0000 |
| commit | e47e0242c994ff50da4e8a4e3039b5c2c37af511 (patch) | |
| tree | 2a96807e49aeb6065904b7a56674717f80c3cf67 | |
| parent | 125a34c7722188c3a82efed28470ec127898adb1 (diff) | |
| download | scummvm-rg350-e47e0242c994ff50da4e8a4e3039b5c2c37af511.tar.gz scummvm-rg350-e47e0242c994ff50da4e8a4e3039b5c2c37af511.tar.bz2 scummvm-rg350-e47e0242c994ff50da4e8a4e3039b5c2c37af511.zip | |
Create a variable _host_alias defaulting to $_host_cpu-$_host_os, which is used to pick the cross compiler. This allows "special" hosts to override it.
svn-id: r39520
| -rwxr-xr-x | configure | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -150,6 +150,7 @@ _host="" _host_cpu="" _host_vendor="" _host_os="" +_host_alias="" cc_check() { echo >> "$TMPLOG" @@ -858,6 +859,10 @@ neuros) ;; esac +if test -z "$_host_alias"; then + _host_alias="$_host_cpu-$_host_os" +fi + # # Determine extension used for executables # @@ -893,7 +898,7 @@ esac # echo_n "Looking for C++ compiler... " if test -n "$_host"; then - compilers="$CXX $_host_cpu-$_host_os-g++ $_host_cpu-$_host_os-c++ $_host-g++ $_host-c++" + compilers="$CXX $_host_alias-g++ $_host_alias-c++ $_host-g++ $_host-c++" else compilers="$CXX g++ c++" fi |
