From c254807c9d1b515b17c4fc9ee92f6a86aaaac1f6 Mon Sep 17 00:00:00 2001 From: Alejandro Hernandez Date: Tue, 16 Jun 2015 15:29:13 +0000 Subject: python3-ctypes: Fix cross compilation for arm targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] Signed-off-by: Alejandro Hernandez Signed-off-by: Jonas Göransson Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3_3.4.3.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/recipes-devtools/python') diff --git a/meta/recipes-devtools/python/python3_3.4.3.bb b/meta/recipes-devtools/python/python3_3.4.3.bb index 8e0c2ba5f0..7eb99b1be7 100644 --- a/meta/recipes-devtools/python/python3_3.4.3.bb +++ b/meta/recipes-devtools/python/python3_3.4.3.bb @@ -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 = "" -- cgit v1.2.3