Index: tests/Makefile.in
===================================================================
--- tests/Makefile.in	(revision 0c1b5660b6f5a0957c905780ecc5883a812e52a7)
+++ tests/Makefile.in	(revision 6bde81df7760078a409d1085f78673c8f1ac474e)
@@ -210,4 +210,5 @@
 EXEEXT = @EXEEXT@
 GREP = @GREP@
+HOST_FLAGS = @HOST_FLAGS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
Index: tests/preempt_longrun/Makefile.in
===================================================================
--- tests/preempt_longrun/Makefile.in	(revision 0c1b5660b6f5a0957c905780ecc5883a812e52a7)
+++ tests/preempt_longrun/Makefile.in	(revision 6bde81df7760078a409d1085f78673c8f1ac474e)
@@ -369,4 +369,5 @@
 EXEEXT = @EXEEXT@
 GREP = @GREP@
+HOST_FLAGS = @HOST_FLAGS@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
Index: tests/pybin/settings.py
===================================================================
--- tests/pybin/settings.py	(revision 0c1b5660b6f5a0957c905780ecc5883a812e52a7)
+++ tests/pybin/settings.py	(revision 6bde81df7760078a409d1085f78673c8f1ac474e)
@@ -51,14 +51,14 @@
 			self.target = arch
 			self.cross_compile = True
-			try :
-				self.flags = Architecture.CrossCompileFlags[arch]
-			except KeyError:
-				print("Cross compilation not available for architecture %s" % arch, file=sys.stderr)
-				sys.exit(1)
-
 		else:
 			self.target = canonical_host
 			self.cross_compile = False
-			self.flags = ""
+
+
+		try :
+			self.flags = Architecture.CrossCompileFlags[self.target]
+		except KeyError:
+			print("Cross compilation not available for architecture %s" % self.target, file=sys.stderr)
+			sys.exit(1)
 
 		self.string = self.target
