From: Jo-Philipp Wich Date: Mon, 18 Mar 2013 14:35:08 +0000 (+0100) Subject: Load plugins with RTLD_GLOBAL, fixes Lua library exports X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=commitdiff_plain;h=85e8bf57e16517b07b2d175d1a17e701d8791ec1;ds=sidebyside Load plugins with RTLD_GLOBAL, fixes Lua library exports --- diff --git a/plugin.c b/plugin.c index 4315da2..b84236c 100644 --- a/plugin.c +++ b/plugin.c @@ -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;