Bug 526302 - Wrong OS_TEST value when cross compiling on Linux with mingw, r=cls, sr=ted
authorJacek Caban <jacek@codeweavers.com>
Sun, 13 Dec 2009 09:44:15 -0800
changeset 35674 479d37add351cc404c72dd7c908e85c1046b3ae6
parent 35673 e89ef920772f51dcaa58a6c000882f2d4d3a51b1
child 35675 c5d0457346b6d4214d53dacf054d62ef2dd23f8b
push id10673
push userphilringnalda@gmail.com
push dateSun, 13 Dec 2009 17:44:42 +0000
treeherdermozilla-central@b3c1f6691f8e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscls, ted
bugs526302
milestone1.9.3a1pre
Bug 526302 - Wrong OS_TEST value when cross compiling on Linux with mingw, r=cls, sr=ted
configure.in
--- a/configure.in
+++ b/configure.in
@@ -1186,17 +1186,19 @@ SINIX-N | SINIX-Y | SINIX-Z |ReliantUNIX
     ;;
 UnixWare)
     HOST_OS_ARCH=UNIXWARE
     ;;
 esac
 
 case "$OS_ARCH" in
 WINNT)
-    OS_TEST=`uname -p`
+    if test -z "$CROSS_COMPILE" ; then
+        OS_TEST=`uname -p`
+    fi
     ;;
 Windows_NT)
 #
 # If uname -s returns "Windows_NT", we assume that we are using
 # the uname.exe in MKS toolkit.
 #
 # The -r option of MKS uname only returns the major version number.
 # So we need to use its -v option to get the minor version number.