aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2017-11-27 16:55:53 -0500
committerArmin Kuster <akuster808@gmail.com>2017-12-22 07:25:00 -0800
commit9132eef66b8f82ef1005a9e76e750d18a6f431f7 (patch)
tree6ce1343b7a59bb14005546a1ab66f0138b108342
parent4e6742384c528dbc67a9ff97f7466b049484ece5 (diff)
downloadmeta-openembedded-contrib-9132eef66b8f82ef1005a9e76e750d18a6f431f7.tar.gz
meta-openembedded-contrib-9132eef66b8f82ef1005a9e76e750d18a6f431f7.tar.bz2
meta-openembedded-contrib-9132eef66b8f82ef1005a9e76e750d18a6f431f7.zip
python-cryptography: add -pthread to LD_FLAGS
The OpenSSL bindings require pthread to avoid runtime issues that end in stack traces: File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import crypto, SSL File "/usr/lib/python2.7/site-packages/OpenSSL/crypto.py", line 16, in <module> from OpenSSL._util import ( File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module> from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 13, in <module> from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: /usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so: undefined symbol: pthread_atfork [YOCTO #12339] Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python-cryptography.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-cryptography.inc b/meta-python/recipes-devtools/python/python-cryptography.inc
index a4d1bbba99..87ff16c37d 100644
--- a/meta-python/recipes-devtools/python/python-cryptography.inc
+++ b/meta-python/recipes-devtools/python/python-cryptography.inc
@@ -55,4 +55,6 @@ FILES_${PN}-dbg += " \
${libdir}/${PYTHON_PN}2.7/site-packages/${SRCNAME}/hazmat/bindings/.debug \
"
+LDFLAGS_append = " -pthread"
+
BBCLASSEXTEND = "native nativesdk"