Alexandre Julliard : configure: Don' t set target flags if build and host are the same.

Alexandre Julliard julliard at winehq.org
Mon Feb 16 09:35:21 CST 2009


Module: wine
Branch: master
Commit: 4d135d9a71477baa9ffca530b2e3046c3e0a7a26
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4d135d9a71477baa9ffca530b2e3046c3e0a7a26

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Feb 16 13:08:44 2009 +0100

configure: Don't set target flags if build and host are the same.

---

 configure    |    2 +-
 configure.ac |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 0e2e266..ad96f4b 100755
--- a/configure
+++ b/configure
@@ -3943,7 +3943,7 @@ fi
 $as_echo "$wine_cv_toolsdir" >&6; }
 TOOLSDIR=$wine_cv_toolsdir
 
-if test -n "$host_alias"
+if test -n "$host_alias" -a "$host_alias" != "$build_alias"
 then
     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
 
diff --git a/configure.ac b/configure.ac
index 3dfada3..4453592 100644
--- a/configure.ac
+++ b/configure.ac
@@ -169,7 +169,7 @@ AC_CACHE_CHECK([for the directory containing the Wine tools], wine_cv_toolsdir,
      AC_MSG_ERROR([could not find Wine tools in $with_wine_tools.])
    fi])
 AC_SUBST(TOOLSDIR,$wine_cv_toolsdir)
-if test -n "$host_alias"
+if test -n "$host_alias" -a "$host_alias" != "$build_alias"
 then
     AC_SUBST(TARGETFLAGS,"-b $host_alias $TARGETFLAGS")
 fi




More information about the wine-cvs mailing list