... | ... |
@@ -125,7 +125,7 @@ int load_module(char* path) |
125 | 125 |
struct module_exports* exp; |
126 | 126 |
struct sr_module* t; |
127 | 127 |
|
128 |
- handle=dlopen(path, RTLD_NOW); /* resolve all symbols now */ |
|
128 |
+ handle=dlopen(path, RTLD_NOW | RTLD_GLOBAL); /* resolve all symbols now */ |
|
129 | 129 |
if (handle==0){ |
130 | 130 |
LOG(L_ERR, "ERROR: load_module: could not open module <%s>: %s\n", |
131 | 131 |
path, dlerror() ); |