File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,14 @@ def blosc_extension():
6060 info ('setting up Blosc extension' )
6161
6262 extra_compile_args = base_compile_args .copy ()
63+ extra_link_args = []
6364 define_macros = []
6465
66+ # ensure pthread is properly linked on POSIX systems
67+ if os .name == 'posix' :
68+ extra_compile_args .append ('-pthread' )
69+ extra_link_args .append ('-pthread' )
70+
6571 # setup blosc sources
6672 blosc_sources = [f for f in glob ('c-blosc/blosc/*.c' ) if 'avx2' not in f and 'sse2' not in f ]
6773 include_dirs = [os .path .join ('c-blosc' , 'blosc' )]
@@ -125,6 +131,7 @@ def blosc_extension():
125131 include_dirs = include_dirs ,
126132 define_macros = define_macros ,
127133 extra_compile_args = extra_compile_args ,
134+ extra_link_args = extra_link_args ,
128135 extra_objects = extra_objects ,
129136 ),
130137 ]
You can’t perform that action at this time.
0 commit comments