Skip to content

Commit f275981

Browse files
committed
Disable RTLD_DEEPBIND on macOS
1 parent a215c61 commit f275981

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/alpaqa/src/util/dl-flags.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ DynamicLoadFlags::operator int() const {
1212
#else
1313
return (global ? RTLD_GLOBAL : RTLD_LOCAL) | //
1414
(lazy ? RTLD_LAZY : RTLD_NOW) | //
15-
(nodelete ? RTLD_NODELETE : 0) | //
16-
(deepbind ? RTLD_DEEPBIND : 0);
15+
(nodelete ? RTLD_NODELETE : 0) |
16+
#ifdef RTLD_DEEPBIND
17+
(deepbind ? RTLD_DEEPBIND : 0) |
18+
#endif
19+
0;
1720
#endif
1821
}
1922

0 commit comments

Comments
 (0)