python3: fix build for shared object
cover python3: fix build for shared object
The following changes since commit e6952593d810636f26af541b12126848483e619a:
kernel: Build uImage only when really needed (2015-05-26 10:57:41 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/py
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/py
Robert Yang (1):
python3: fix build for shared object
meta/recipes-devtools/python/python3_3.4.3.bb | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
1.7.9.5
PATCH 1/1 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.
Signed-off-by Robert Yang <[email protected]>
--- meta/recipes-devtools/python/python3_3.4.3.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3_3.4.3.bb +1 -0
@@ -67,6 +67,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 = ""
Signature · 1 line
1.7.9.5