diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-05-28 02:22:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-28 09:44:13 +0100 |
commit | 1ee92bc5d5ff1d783c8073362aefd232ee7a2dbc (patch) | |
tree | 00bc59a7f9fcd4993921e59550fc03a9b2cc2280 /meta/recipes-devtools | |
parent | 34195e3210d5160a04032f234202dfdb18e71e78 (diff) | |
download | poky-1ee92bc5d5ff1d783c8073362aefd232ee7a2dbc.tar.gz |
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)
(From OE-Core rev: d9c3d3036da6f36d1f494987aa854d0c76968a27)
Signed-off-by: Robert Yang <liezhi.yang@windriver.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.bb | 1 |
1 files changed, 1 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 6147408937..897aba9158 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} | |||
71 | export CROSS_COMPILE = "${TARGET_PREFIX}" | 71 | export CROSS_COMPILE = "${TARGET_PREFIX}" |
72 | export _PYTHON_PROJECT_BASE = "${B}" | 72 | export _PYTHON_PROJECT_BASE = "${B}" |
73 | export _PYTHON_PROJECT_SRC = "${S}" | 73 | export _PYTHON_PROJECT_SRC = "${S}" |
74 | export CCSHARED = "-fPIC" | ||
74 | 75 | ||
75 | # No ctypes option for python 3 | 76 | # No ctypes option for python 3 |
76 | PYTHONLSBOPTS = "" | 77 | PYTHONLSBOPTS = "" |