python3-ctypes: Fix cross compilation for arm targets
PATCH 1/1 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]
--- meta/recipes-devtools/python/python3_3.3.3.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta/recipes-devtools/python/python3_3.3.3.bb +4 -0
@@ -72,6 +72,10 @@ export CROSS_COMPILE = "${TARGET_PREFIX}" export _PYTHON_PROJECT_BASE = "${B}" export _PYTHON_PROJECT_SRC = "${S}" +# 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 = ""
Signature · 1 line
1.8.4.5
PATCH 1/1 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]
--- meta/recipes-devtools/python/python3_3.4.3.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-devtools/python/python3_3.4.3.bb +3 -0
@@ -69,6 +69,9 @@ 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 = ""
Signature · 1 line
1.8.4.5
Quoted 5 lines · Alejandro Hernandez
When cross compiling for arm targets ctypes compilation fails because it uses
_sysconfigdatafrom the HOST, this patches makes it use the one from TARGET fixing compilation of this module[YOCTO #7873]
Thanks Alejandro,
This is queued in my fido-next branch[1].
Regards,
Joshua
1. http://cgit.openembedded.org/openembedded-core
-contrib/log/?h=joshuagl/fido-next
Quoted 28 lines
Signed-off-by: Alejandro Hernandez <
[email protected]>Signed-off-by Jonas Göransson <[email protected]>--- meta/recipes-devtools/python/python3_3.3.3.bb | 4 ++++ 1 file changed, 4 insertions(+)meta/recipes-devtools/python/python3_3.3.3.bb +4
-1@@ -72,6 +72,10 @@ export CROSS_COMPILE = "${TARGET_PREFIX}" export _PYTHON_PROJECT_BASE = "${B}" export _PYTHON_PROJECT_SRC = "${S}" +# 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 = ""Signature · 2 lines
-- 1.8.4.5