summaryrefslogtreecommitdiffstats
path: root/patches/Python-2.6.2/0016-provide-wrapper-for-cross-python.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/Python-2.6.2/0016-provide-wrapper-for-cross-python.patch')
-rw-r--r--patches/Python-2.6.2/0016-provide-wrapper-for-cross-python.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/patches/Python-2.6.2/0016-provide-wrapper-for-cross-python.patch b/patches/Python-2.6.2/0016-provide-wrapper-for-cross-python.patch
new file mode 100644
index 000000000..2c8db34d3
--- /dev/null
+++ b/patches/Python-2.6.2/0016-provide-wrapper-for-cross-python.patch
@@ -0,0 +1,50 @@
+From ff60f7c08cb167d060fd0e34b543550facf846c6 Mon Sep 17 00:00:00 2001
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+Date: Mon, 4 May 2009 21:45:37 +0200
+Subject: [PATCH] provide wrapper for cross-python
+
+this patch provides a wrapper script that sets up a propper cross
+compilation environemnt and call the python_for_build
+
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+---
+ configure.in | 2 +-
+ cross-python-wrapper.in | 13 +++++++++++++
+ 2 files changed, 14 insertions(+), 1 deletions(-)
+ create mode 100755 cross-python-wrapper.in
+
+diff --git a/configure.in b/configure.in
+index 1354b7f..7beda7d 100644
+--- a/configure.in
++++ b/configure.in
+@@ -3755,7 +3755,7 @@ fi
+
+
+ # generate output files
+-AC_CONFIG_FILES(Makefile.pre Modules/Setup.config)
++AC_CONFIG_FILES(Makefile.pre Modules/Setup.config cross-python-wrapper)
+ AC_OUTPUT
+
+ echo "creating Modules/Setup"
+diff --git a/cross-python-wrapper.in b/cross-python-wrapper.in
+new file mode 100755
+index 0000000..9cfd36f
+--- /dev/null
++++ b/cross-python-wrapper.in
+@@ -0,0 +1,13 @@
++#!/bin/sh
++
++prefix="@prefix@"
++exec_prefix="@exec_prefix@"
++
++CROSS_COMPILING=yes
++_python_sysroot="@SYSROOT@"
++_python_prefix="${prefix}"
++_python_exec_prefix="${exec_prefix}"
++
++export CROSS_COMPILING _python_sysroot _python_prefix _python_exec_prefix
++
++exec @PYTHON_FOR_BUILD@ "${@}"
+--
+1.5.6.3
+