diff options
| -rw-r--r-- | meta/recipes-devtools/python/python_2.7.2.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python_2.7.2.bb b/meta/recipes-devtools/python/python_2.7.2.bb index 5ad410904f..0a8e53494d 100644 --- a/meta/recipes-devtools/python/python_2.7.2.bb +++ b/meta/recipes-devtools/python/python_2.7.2.bb | |||
| @@ -37,6 +37,17 @@ do_configure_prepend() { | |||
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | do_compile() { | 39 | do_compile() { |
| 40 | # regenerate platform specific files, because they depend on system headers | ||
| 41 | cd Lib/plat-linux2 | ||
| 42 | include=${STAGING_INCDIR} ${STAGING_BINDIR_NATIVE}/python \ | ||
| 43 | ${S}/Tools/scripts/h2py.py -i '(u_long)' \ | ||
| 44 | ${STAGING_INCDIR}/dlfcn.h \ | ||
| 45 | ${STAGING_INCDIR}/linux/cdrom.h \ | ||
| 46 | ${STAGING_INCDIR}/netinet/in.h \ | ||
| 47 | ${STAGING_INCDIR}/sys/types.h | ||
| 48 | sed -e 's,${STAGING_DIR_HOST},,g' -i *.py | ||
| 49 | cd - | ||
| 50 | |||
| 40 | # | 51 | # |
| 41 | # Copy config.h and an appropriate Makefile for distutils.sysconfig, | 52 | # Copy config.h and an appropriate Makefile for distutils.sysconfig, |
| 42 | # which laters uses the information out of these to compile extensions | 53 | # which laters uses the information out of these to compile extensions |
