Skip to content

Commit c12d2da

Browse files
committed
macOS: dlopen() with RTLD_LAZY|RTLD_GLOBAL
1 parent 8bd6dae commit c12d2da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.cibw/mpi4py_mpiabi.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ def add_rpath_prefix(prefix):
7878

7979

8080
def _dlopen_mode():
81+
if sys.platform == "linux":
82+
return os.RTLD_LAZY | os.RTLD_LOCAL
83+
if sys.platform == "darwin":
84+
return os.RTLD_LAZY | os.RTLD_GLOBAL
8185
if os.name == "posix":
8286
return os.RTLD_LAZY | os.RTLD_LOCAL
8387
return None

0 commit comments

Comments
 (0)