From: Alejandro Hernandez Date: Tue, 16 Jun 2015 15:29:12 +0000 (+0000) Subject: python3-ctypes: Fix cross compilation for arm targets X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a676ee838aae1ac05fa6542d1b0791d61ff9f05f;p=openembedded-core.git 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] Signed-off-by: Alejandro Hernandez Signed-off-by: Jonas Göransson --- diff --git a/meta/recipes-devtools/python/python3_3.3.3.bb b/meta/recipes-devtools/python/python3_3.3.3.bb index 897aba9158..0dcc26f540 100644 --- a/meta/recipes-devtools/python/python3_3.3.3.bb +++ b/meta/recipes-devtools/python/python3_3.3.3.bb @@ -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 = ""