]> Nishi Git Mirror - gwion.git/commitdiff
:art: Allow sharing stuff between plugs
authorfennecdjay <astor.jeremie@wanadoo.fr>
Mon, 18 Mar 2019 09:55:40 +0000 (10:55 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Mon, 18 Mar 2019 09:55:40 +0000 (10:55 +0100)
src/plug.c

index eace8aec41a916cfd0dc3b3e78590dbb02d572fa..2491c3fab48a71a2001205df4c349d69ce4a0828 100644 (file)
@@ -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);