[oe-commits] Robert Yang : python3: fix build for shared object
git at git.openembedded.org
git at git.openembedded.org
Sun Jun 28 08:46:37 UTC 2015
Module: openembedded-core.git
Branch: fido
Commit: d9c3d3036da6f36d1f494987aa854d0c76968a27
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d9c3d3036da6f36d1f494987aa854d0c76968a27
Author: Robert Yang <liezhi.yang at windriver.com>
Date: Thu May 28 02:22:24 2015 -0700
python3: fix build for shared object
Fixed when build on armv7a_vfp_neon:
Python-3.3.3/Modules/_struct.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
All the archs should use -fPIC when build shared object for linux.
(From OE-Core rev: 60c1f76f65060cbea458b06f9719a2536f50474e)
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-devtools/python/python3_3.3.3.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-devtools/python/python3_3.3.3.bb b/meta/recipes-devtools/python/python3_3.3.3.bb
index 6147408..897aba9 100644
--- a/meta/recipes-devtools/python/python3_3.3.3.bb
+++ b/meta/recipes-devtools/python/python3_3.3.3.bb
@@ -71,6 +71,7 @@ EXTRA_OECONF += "CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}
export CROSS_COMPILE = "${TARGET_PREFIX}"
export _PYTHON_PROJECT_BASE = "${B}"
export _PYTHON_PROJECT_SRC = "${S}"
+export CCSHARED = "-fPIC"
# No ctypes option for python 3
PYTHONLSBOPTS = ""
More information about the Openembedded-commits
mailing list