summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>2015-06-16 15:29:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-28 09:44:18 +0100
commitf76f0555b9b6ca6dd0c8e5baafa34f43828479b9 (patch)
tree6b8a10b4d8d308bca263e2f1207908b06752d8de /meta/recipes-devtools
parentaffbc3f64940d59815941ce94c4aa19cab4aa72c (diff)
downloadpoky-f76f0555b9b6ca6dd0c8e5baafa34f43828479b9.tar.gz
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>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python3_3.3.3.bb4
1 files changed, 4 insertions, 0 deletions
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}"
73export _PYTHON_PROJECT_SRC = "${S}" 73export _PYTHON_PROJECT_SRC = "${S}"
74export CCSHARED = "-fPIC" 74export CCSHARED = "-fPIC"
75 75
76# Fix ctypes cross compilation
77export CROSSPYTHONPATH = "${B}/build/lib.linux-${TARGET_ARCH}-${PYTHON_MAJMIN}:${S}/Lib:${S}/Lib/plat-linux"
78
79
76# No ctypes option for python 3 80# No ctypes option for python 3
77PYTHONLSBOPTS = "" 81PYTHONLSBOPTS = ""
78 82