[Mesa-dev] [PATCH] configure: use $target_cpu, not $host_cpu when setting asm_arch

Brian Paul brianp at vmware.com
Tue Jun 23 15:04:14 PDT 2015


Otherwise, if we're trying to build a 32-bit Mesa on a 64-bit host
we wind up with -DUSE_X86_64_ASM, which is incorrect.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ddc757e..b12f5f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -605,7 +605,7 @@ if test "x$enable_asm" = xyes -a "x$cross_compiling" = xyes; then
 fi
 # check for supported arches
 if test "x$enable_asm" = xyes; then
-    case "$host_cpu" in
+    case "$target_cpu" in
     i?86)
         case "$host_os" in
         linux* | *freebsd* | dragonfly* | *netbsd* | openbsd* | gnu*)
-- 
1.9.1



More information about the mesa-dev mailing list