From: fennecdjay Date: Mon, 18 Mar 2019 09:55:40 +0000 (+0100) Subject: :art: Allow sharing stuff between plugs X-Git-Tag: nightly~2618 X-Git-Url: http://10.11.0.4:5575/?a=commitdiff_plain;h=d8e078109b31fbefdf55168a84bbc27b5388b010;p=gwion.git :art: Allow sharing stuff between plugs --- diff --git a/src/plug.c b/src/plug.c index eace8aec..2491c3fa 100644 --- a/src/plug.c +++ b/src/plug.c @@ -42,7 +42,7 @@ struct Plug_ { #define DLCLOSE(dl) FreeLibrary(dl); #endif ANN static void plug_get(PlugInfo* p, const m_str c) { - void* dl = DLOPEN(c, RTLD_LAZY); + void* dl = DLOPEN(c, RTLD_LAZY | RTLD_GLOBAL); if(dl) { vector_add(&p->vec[GWPLUG_DL], (vtype)dl); const import imp = DLSYM(dl, import, GWIMPORT_NAME);