[oe-commits] [openembedded-core] 13/47: python3: fix CROSSPYTHONPATH for cross builds

git at git.openembedded.org git at git.openembedded.org
Wed Jun 15 17:06:28 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 20c637ef40f2de9c2848ac1fb25240dea84cdb7b
Author: Awais Belal <awais_belal at mentor.com>
AuthorDate: Tue Jun 14 16:26:08 2016 +0500

    python3: fix CROSSPYTHONPATH for cross builds
    
    There are cases where target and host are of the same
    type and at such instances the target modules may be
    loaded if CROSSPYTHONPATH is not correct. This adds
    host library paths so that target modules are not
    loaded while cross compiling to avoid illegal instruction
    issues.
    
    Signed-off-by: Awais Belal <awais_belal at mentor.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-devtools/python/python3_3.5.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/python/python3_3.5.1.bb b/meta/recipes-devtools/python/python3_3.5.1.bb
index ebfdcdb..78ae174 100644
--- a/meta/recipes-devtools/python/python3_3.5.1.bb
+++ b/meta/recipes-devtools/python/python3_3.5.1.bb
@@ -70,8 +70,8 @@ export _PYTHON_PROJECT_BASE = "${B}"
 export _PYTHON_PROJECT_SRC = "${S}"
 export CCSHARED = "-fPIC"
 
-# Fix ctypes cross compilation
-export CROSSPYTHONPATH = "${B}/build/lib.linux-${TARGET_ARCH}-${PYTHON_MAJMIN}:${S}/Lib:${S}/Lib/plat-linux"
+# Fix cross compilation of different modules
+export CROSSPYTHONPATH = "${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/:${B}/build/lib.linux-${TARGET_ARCH}-${PYTHON_MAJMIN}:${S}/Lib:${S}/Lib/plat-linux"
 
 # No ctypes option for python 3
 PYTHONLSBOPTS = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list