|
@@ -0,0 +1,34 @@
|
|
|
|
+From 8eda59654fd31416164c78f6068715b01767ed4e Mon Sep 17 00:00:00 2001
|
|
|
|
+From: Serhey Popovych <serhe.popovych@gmail.com>
|
|
|
|
+Date: Wed, 31 Oct 2018 07:31:47 -0400
|
|
|
|
+Subject: v86d: Support for cross compilation
|
|
|
|
+
|
|
|
|
+It is common to build on one system for another (e.g. on IBM Power
|
|
|
|
+machine for Intel x86) where HOST_ARCH (uname -m) != TARGET_ARCH.
|
|
|
|
+
|
|
|
|
+Take TARGET_ARCH from environment if it is given, otherwise fall back
|
|
|
|
+to `uname -m`.
|
|
|
|
+
|
|
|
|
+Upstream-Status: Pending
|
|
|
|
+Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
|
|
|
|
+---
|
|
|
|
+ configure | 3 ++-
|
|
|
|
+ 1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
+
|
|
|
|
+diff --git a/configure b/configure
|
|
|
|
+index cbbd6b3..046aa99 100755
|
|
|
|
+--- a/configure
|
|
|
|
++++ b/configure
|
|
|
|
+@@ -23,7 +23,8 @@ copt_x86emu_type="bool"
|
|
|
|
+ copt_x86emu_def=auto
|
|
|
|
+ copt_x86emu_test()
|
|
|
|
+ {
|
|
|
|
+- local m=`uname -m`
|
|
|
|
++ local m="${TARGET_ARCH:-$(uname -m)}"
|
|
|
|
++
|
|
|
|
+ if [ "$m" = "i686" -o "$m" = "i586" -o "$m" = "i486" -o "$m" = "i386" ]; then
|
|
|
|
+ echo "n";
|
|
|
|
+ elif [ "$m" = "x86_64" ]; then
|
|
|
|
+--
|
|
|
|
+1.8.3.1
|
|
|
|
+
|