configure: explicitly set host_cpu for 'amd64'.

David Naylor dbn at freebsd.org
Mon Feb 2 14:03:19 CST 2015


This patch is a follow on from patch 108717 (http://source.winehq.org/patches/data/108717).  


In the case of host starting with 'amd64', the host_cpu variable will not be
set to the correct CPU value of 'x86_64'.  Set it explicitly to the correct
value.
---
 configure    | 1 +
 configure.ac | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configure b/configure
index 3c32ef3..9349d40 100755
--- a/configure
+++ b/configure
@@ -4779,6 +4779,7 @@ $as_echo "no" >&6; }
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       fi
+      host_cpu="x86_64"
       TARGETFLAGS="-m64"
 
     fi
diff --git a/configure.ac b/configure.ac
index ad6d02b..8163d8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,6 +162,7 @@ case $host in
                           [AC_MSG_RESULT([no])
                            AC_MSG_ERROR([You need gcc >= 4.4 to build Wine as 64-bit.])])
       fi
+      host_cpu="x86_64"
       AC_SUBST(TARGETFLAGS,"-m64")
     fi
     ;;
-- 
2.2.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part.
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150202/a99687db/attachment.sig>


More information about the wine-patches mailing list