[education/rkward] rkward/rbackend: Use lazy loading for the preloaded libs
Thomas Friedrichsmeier
null at kde.org
Thu Jul 4 22:46:00 BST 2024
Git commit 16f27f6f5cb200c6f3132cd088e56e9edc6f771d by Thomas Friedrichsmeier.
Committed on 04/07/2024 at 21:45.
Pushed by tfry into branch 'master'.
Use lazy loading for the preloaded libs
M +2 -2 rkward/rbackend/rkrbackend_dlopen.cpp
https://invent.kde.org/education/rkward/-/commit/16f27f6f5cb200c6f3132cd088e56e9edc6f771d
diff --git a/rkward/rbackend/rkrbackend_dlopen.cpp b/rkward/rbackend/rkrbackend_dlopen.cpp
index 06bd9a375..2d026f26c 100644
--- a/rkward/rbackend/rkrbackend_dlopen.cpp
+++ b/rkward/rbackend/rkrbackend_dlopen.cpp
@@ -98,8 +98,8 @@ int main(int argc, char *argv[]) {
#elif defined(__APPLE__)
// libR.dylib is not always correctly linked against libRlapack.dylib, even where needed.
// let's try to preload it into the global namespace
- dlopen("libRlapack.dylib", RTLD_NOW | RTLD_GLOBAL);
- dlopen("libRblas.dylib", RTLD_NOW | RTLD_GLOBAL);
+ dlopen("libRlapack.dylib", RTLD_LAZY | RTLD_GLOBAL);
+ dlopen("libRblas.dylib", RTLD_LAZY | RTLD_GLOBAL);
auto r_dllinfo = loadlib("libR.dylib");
#else
auto r_dllinfo = loadlib("libR.so");
More information about the rkward-tracker
mailing list