summaryrefslogtreecommitdiffstats
path: root/package/stella/0001-Add-cross-compilation-support.patch
blob: 1aefd86cf43b489a02320bdcf0da68d8a4c2ee1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From ef1cffc526d3cf9562d50efbf8addc2aa4c06b52 Mon Sep 17 00:00:00 2001
From: Sergio Prado <sergio.prado@e-labworks.com>
Date: Sun, 30 Jul 2017 18:23:23 -0300
Subject: [PATCH 1/2] Add cross-compilation support

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
---
 configure | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index c2f304729651..b05321aac3da 100755
--- a/configure
+++ b/configure
@@ -499,8 +499,9 @@ if test -n "$_host"; then
 			_host_os=win32
 			;;
 		*)
-			echo "Cross-compiling to unknown target, please add your target to configure."
-			exit 1
+			echo "Cross-compiling to $_host target"
+			DEFINES="$DEFINES -DUNIX"
+			_host_os=unix
 			;;
 	esac
 
-- 
1.9.1

OpenPOWER on IntegriCloud