From f2759814ec72ae4846bc79433cd0e3047944194f Mon Sep 17 00:00:00 2001 From: Pieter Pas Date: Fri, 3 May 2024 17:45:50 +0200 Subject: [PATCH] Disable RTLD_DEEPBIND on macOS --- src/alpaqa/src/util/dl-flags.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/alpaqa/src/util/dl-flags.cpp b/src/alpaqa/src/util/dl-flags.cpp index b744594d41..e304414bd5 100644 --- a/src/alpaqa/src/util/dl-flags.cpp +++ b/src/alpaqa/src/util/dl-flags.cpp @@ -12,8 +12,11 @@ DynamicLoadFlags::operator int() const { #else return (global ? RTLD_GLOBAL : RTLD_LOCAL) | // (lazy ? RTLD_LAZY : RTLD_NOW) | // - (nodelete ? RTLD_NODELETE : 0) | // - (deepbind ? RTLD_DEEPBIND : 0); + (nodelete ? RTLD_NODELETE : 0) | +#ifdef RTLD_DEEPBIND + (deepbind ? RTLD_DEEPBIND : 0) | +#endif + 0; #endif }