blob: 5cc874246237548b693c64c4f59ab2d07ee4dbdf [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Rebased for python 2.7.9
2
3Upstream-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
8Index: 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 = {}