diff options
Diffstat (limited to 'project2/basics/preload.cpp')
-rw-r--r-- | project2/basics/preload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/project2/basics/preload.cpp b/project2/basics/preload.cpp index 104dc22..03f275b 100644 --- a/project2/basics/preload.cpp +++ b/project2/basics/preload.cpp @@ -19,7 +19,7 @@ class Preload { { const auto beforeOpts = InstanceSet<Options>::GetAll(); - void * handle = dlopen(librarypath, RTLD_NOW); + void * handle = dlopen(librarypath, RTLD_GLOBAL | RTLD_NOW); if (handle) { Logger()->messagebf(LOG_DEBUG, "Loaded library '%s'", librarypath.as<std::string>()); } |