Skip to content

Commit 357cb60

Browse files
Frederik Aalund1st1
authored andcommitted
Link with pthread (#87)
When importing uvloop, I got the following error: >>> import uvloop Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/projects/RedPitaya/OS/buildroot/buildroot-2017.02/output/target/usr/lib/python3.5/site-packages/uvloop/__init__.py", line 7, in <module> ImportError: /usr/lib/python3.5/site-packages/uvloop/loop.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: pthread_atfork This is fixed by linking the plugin (`loop.cpython-35m-arm-linux-gnueabihf.so`) to pthread as done in this patch.
1 parent 6ed8757 commit 357cb60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ def build_extensions(self):
267267
self.compiler.add_library('kvm')
268268
elif sys.platform.startswith('sunos'):
269269
self.compiler.add_library('kstat')
270+
271+
self.compiler.add_library('pthread')
270272

271273
super().build_extensions()
272274

0 commit comments

Comments
 (0)