diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-03-18 15:35:08 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-18 15:36:05 +0100 |
commit | 85e8bf57e16517b07b2d175d1a17e701d8791ec1 (patch) | |
tree | 3cac226334ee0d9245fce6df2fbfb5a5bac33a79 /plugin.c | |
parent | 3675d407ecf4908a231eb6bde6bb6408f20a9e81 (diff) |
Load plugins with RTLD_GLOBAL, fixes Lua library exports
Diffstat (limited to 'plugin.c')
-rw-r--r-- | plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ int uh_plugin_init(const char *name) const char *sym; void *dlh; - dlh = dlopen(name, RTLD_LAZY | RTLD_LOCAL); + dlh = dlopen(name, RTLD_LAZY | RTLD_GLOBAL); if (!dlh) { fprintf(stderr, "Could not open plugin %s: %s\n", name, dlerror()); return -ENOENT; |