summaryrefslogtreecommitdiff
path: root/src/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin.cpp')
-rw-r--r--src/plugin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugin.cpp b/src/plugin.cpp
index 10afaab..16dfa7d 100644
--- a/src/plugin.cpp
+++ b/src/plugin.cpp
@@ -154,12 +154,10 @@ dlloaderLoadPlugin (CompPlugin *p,
return false;
}
- int open_flags = RTLD_LAZY;
+ int open_flags = RTLD_LAZY | RTLD_GLOBAL;
#ifdef DEBUG
// Do not unload the library during dlclose.
open_flags |= RTLD_NODELETE;
- // Make the symbols available globally
- open_flags |= RTLD_GLOBAL;
#endif
dlhand = dlopen (file.c_str (), open_flags);
if (dlhand)