I don't really like doing this, but python needs it for
"import gtk" to work.
Signed-off-by: NeilBrown <neil@brown.name>
void (*s)(struct editor *e);
sprintf(buf, "edlib-%s.so", name);
- h = dlopen(buf, RTLD_NOW);
+ /* RTLD_GLOBAL is needed for python, else we get
+ * errors about _Py_ZeroStruct which a python script
+ * tries "import gtk"
+ *
+ */
+ h = dlopen(buf, RTLD_NOW | RTLD_GLOBAL);
if (!h)
return 0;
s = dlsym(h, "edlib_init");