diff options
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 | 27 |
1 files changed, 0 insertions, 27 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 deleted file mode 100644 index 5cc8742462..0000000000 --- a/meta/recipes-devtools/python/python/05-enable-ctypes-cross-build.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | Rebased for python 2.7.9 | ||
2 | |||
3 | Upstream-Status: Inappropriate [embedded specific] | ||
4 | |||
5 | # CTypes need to know the actual host we are building on. | ||
6 | # Signed-Off: Michael Dietrich <mdt@emdete.de> | ||
7 | |||
8 | Index: Python-2.7.9/setup.py | ||
9 | =================================================================== | ||
10 | --- Python-2.7.9.orig/setup.py | ||
11 | +++ Python-2.7.9/setup.py | ||
12 | @@ -2028,12 +2028,12 @@ class PyBuildExt(build_ext): | ||
13 | |||
14 | # Pass empty CFLAGS because we'll just append the resulting | ||
15 | # CFLAGS to Python's; -g or -O2 is to be avoided. | ||
16 | - cmd = "cd %s && env CFLAGS='' '%s/configure' %s" \ | ||
17 | - % (ffi_builddir, ffi_srcdir, " ".join(config_args)) | ||
18 | + cmd = "(cd %s && autoconf -W cross) && (cd %s && env CFLAGS='' '%s/configure' %s)" \ | ||
19 | + % (ffi_srcdir, ffi_builddir, ffi_srcdir, " ".join(config_args)) | ||
20 | |||
21 | res = os.system(cmd) | ||
22 | if res or not os.path.exists(ffi_configfile): | ||
23 | - print "Failed to configure _ctypes module" | ||
24 | + print "Failed to configure _ctypes module (res=%d) or missing conffile=%s" % ( res, ffi_configfile ) | ||
25 | return False | ||
26 | |||
27 | fficonfig = {} | ||