Skip to content

Commit

Permalink
test RTLD_LOCAL flag
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Nov 20, 2024
1 parent d082e7a commit 07a3f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rchitect/src/libR.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ int _libR_load(const char* rhome) {
libR_t = load_dll(libpath);
#elif defined(__APPLE__)
sprintf(libpath, "%s/%s", rhome, "lib/libR.dylib");
libR_t = dlopen(libpath, RTLD_NOW|RTLD_GLOBAL);
libR_t = dlopen(libpath, RTLD_NOW|RTLD_LOCAL);
#else
sprintf(libpath, "%s/%s", rhome, "lib/libR.so");
libR_t = dlopen(libpath, RTLD_NOW|RTLD_GLOBAL);
libR_t = dlopen(libpath, RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND);
#endif
if (libR_t == NULL) {
free(libpath);
Expand Down

0 comments on commit 07a3f65

Please sign in to comment.