mirror of
https://git.yoctoproject.org/poky
synced 2026-03-27 07:02:22 +01:00
python3-ctypes: Fix cross compilation for arm targets
When cross compiling for arm targets ctypes compilation fails because it uses _sysconfigdata from the HOST, this patches makes it use the one from TARGET fixing compilation of this module [YOCTO #7873] (From OE-Core rev: a676ee838aae1ac05fa6542d1b0791d61ff9f05f) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Jonas Göransson <jonas.goransson@qmatic.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
affbc3f649
commit
f76f0555b9
@@ -73,6 +73,10 @@ 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"
|
||||
|
||||
|
||||
# No ctypes option for python 3
|
||||
PYTHONLSBOPTS = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user