diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
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.patch | 30 |
1 files changed, 30 insertions, 0 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 new file mode 100644 index 0000000000..a68a20620a --- /dev/null +++ b/meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | ||
2 | |||
3 | # CTypes need to know the actual host we are building on. | ||
4 | # Signed-Off: Michael Dietrich <mdt@emdete.de> | ||
5 | |||
6 | Index: Python-2.6.1/setup.py | ||
7 | =================================================================== | ||
8 | --- Python-2.6.1.orig/setup.py | ||
9 | +++ Python-2.6.1/setup.py | ||
10 | @@ -1656,16 +1656,16 @@ 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 | |||
17 | # Pass empty CFLAGS because we'll just append the resulting | ||
18 | # CFLAGS to Python's; -g or -O2 is to be avoided. | ||
19 | - cmd = "cd %s && env CFLAGS='' '%s/configure' %s" \ | ||
20 | - % (ffi_builddir, ffi_srcdir, " ".join(config_args)) | ||
21 | + cmd = "(cd %s && autoconf -W cross) && (cd %s && env CFLAGS='' '%s/configure' %s)" \ | ||
22 | + % (ffi_srcdir, ffi_builddir, ffi_srcdir, " ".join(config_args)) | ||
23 | |||
24 | res = os.system(cmd) | ||
25 | if res or not os.path.exists(ffi_configfile): | ||
26 | - print "Failed to configure _ctypes module" | ||
27 | + print "Failed to configure _ctypes module (res=%d) or missing conffile=%s" % ( res, ffi_configfile ) | ||
28 | return False | ||
29 | |||
30 | fficonfig = {} | ||