Source: pcsxr
Version: 1.9.94-3
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

pcsxr fails to cross build from source from x86 to non-x86, because the
dynamic recompiler selection confuses build and host. The attached patch
fixes that and makes pcsxr cross build successfully. Please consider
applying it.

Helmut
--- pcsxr-1.9.94.orig/configure.ac
+++ pcsxr-1.9.94/configure.ac
@@ -216,9 +216,9 @@
 fi
 
 if test "x$DYNARECSEL" = xauto; then
-	if expr x"$build_cpu" : 'xi.86' > /dev/null; then
+	if expr x"$host_cpu" : 'xi.86' > /dev/null; then
 		DYNARECSEL="x86"
-	elif expr x"$build_cpu" : 'xx86_64' > /dev/null; then
+	elif expr x"$host_cpu" : 'xx86_64' > /dev/null; then
 		DYNARECSEL="x86_64"
 	fi
 fi

Reply via email to