From b2f8367dff8a2db49b9296bd27a2e94a3619884d Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Sun, 18 Jan 2015 19:10:32 -0800 Subject: python3: fix for cross compiling Fixed: * python3 has introduced _PYTHON_PROJECT_BASE which is used for separate B and S, but it doesn't work when compile Modules, the target python3 runs python3-native's sysconfig to get srcdir which is the native's, there would be errors when native's srcdir has been removed, add _PYTHON_PROJECT_SRC to fix the problem. * Check cross_compiling when get FLAGS (From OE-Core rev: c33639963491f00f55b80299922895fe68b0637d) Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- meta/recipes-devtools/python/python3-native_3.3.3.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-devtools/python/python3-native_3.3.3.bb') diff --git a/meta/recipes-devtools/python/python3-native_3.3.3.bb b/meta/recipes-devtools/python/python3-native_3.3.3.bb index 9ae2a0b..73ce095 100644 --- a/meta/recipes-devtools/python/python3-native_3.3.3.bb +++ b/meta/recipes-devtools/python/python3-native_3.3.3.bb @@ -27,6 +27,8 @@ file://fix-ast.h-dependency.patch \ file://makerace.patch \ ${DISTRO_SRC_URI} \ file://python3-fix-build-error-with-Readline-6.3.patch \ +file://sysconfig.py-add-_PYTHON_PROJECT_SRC.patch \ +file://setup.py-check-cross_compiling-when-get-FLAGS.patch \ " SRC_URI[md5sum] = "f3ebe34d4d8695bf889279b54673e10c" SRC_URI[sha256sum] = "e526e9b612f623888364d30cc9f3dfc34dcef39065c713bdbcddf47df84d8dcb" -- cgit v1.1