summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch')
-rw-r--r--meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch17
1 files changed, 7 insertions, 10 deletions
diff --git a/meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch b/meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch
index a68a20620a..5cc8742462 100644
--- a/meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch
+++ b/meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch
@@ -1,25 +1,22 @@
1Rebased for python 2.7.9
2
1Upstream-Status: Inappropriate [embedded specific] 3Upstream-Status: Inappropriate [embedded specific]
2 4
3# CTypes need to know the actual host we are building on. 5# CTypes need to know the actual host we are building on.
4# Signed-Off: Michael Dietrich <mdt@emdete.de> 6# Signed-Off: Michael Dietrich <mdt@emdete.de>
5 7
6Index: Python-2.6.1/setup.py 8Index: Python-2.7.9/setup.py
7=================================================================== 9===================================================================
8--- Python-2.6.1.orig/setup.py 10--- Python-2.7.9.orig/setup.py
9+++ Python-2.6.1/setup.py 11+++ Python-2.7.9/setup.py
10@@ -1656,16 +1656,16 @@ class PyBuildExt(build_ext): 12@@ -2028,12 +2028,12 @@ class PyBuildExt(build_ext):
11 ffi_configfile):
12 from distutils.dir_util import mkpath
13 mkpath(ffi_builddir)
14- config_args = []
15+ config_args = ['--host=%s' % os.environ["HOST_SYS"], ]
16 13
17 # Pass empty CFLAGS because we'll just append the resulting 14 # Pass empty CFLAGS because we'll just append the resulting
18 # CFLAGS to Python's; -g or -O2 is to be avoided. 15 # CFLAGS to Python's; -g or -O2 is to be avoided.
19- cmd = "cd %s && env CFLAGS='' '%s/configure' %s" \ 16- cmd = "cd %s && env CFLAGS='' '%s/configure' %s" \
20- % (ffi_builddir, ffi_srcdir, " ".join(config_args)) 17- % (ffi_builddir, ffi_srcdir, " ".join(config_args))
21+ cmd = "(cd %s && autoconf -W cross) && (cd %s && env CFLAGS='' '%s/configure' %s)" \ 18+ cmd = "(cd %s && autoconf -W cross) && (cd %s && env CFLAGS='' '%s/configure' %s)" \
22+ % (ffi_srcdir, ffi_builddir, ffi_srcdir, " ".join(config_args)) 19+ % (ffi_srcdir, ffi_builddir, ffi_srcdir, " ".join(config_args))
23 20
24 res = os.system(cmd) 21 res = os.system(cmd)
25 if res or not os.path.exists(ffi_configfile): 22 if res or not os.path.exists(ffi_configfile):