mirror of
https://git.yoctoproject.org/poky
synced 2026-02-08 18:02:12 +01:00
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. (From OE-Core rev: 20c637ef40f2de9c2848ac1fb25240dea84cdb7b) Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ce6e49a01f
commit
fe4184da57
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user