Author: Nilesh Patra <npatra974@gmail.com>
Description: Enable "-shared" while linking
Last-Changed: September 7, 2020
--- a/python_bindings/setup.py
+++ b/python_bindings/setup.py
@@ -70,7 +70,7 @@
         link_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.7']
     else:
         c_opts['unix'].append("-fopenmp")
-        link_opts['unix'].extend(['-fopenmp', '-pthread'])
+        link_opts['unix'].extend(['-fopenmp', '-pthread', '-shared'])
 
     def build_extensions(self):
         ct = self.compiler.compiler_type
