summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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