Browse code

- added RTLD_GLOBAL to dlopen ; this enables modules to use functions from other modules (added just for some tests, I will probably remove it again because I think inter module calls are a bad practice and I don't want to make it easier)

Andrei Pelinescu-Onciul authored on 22/05/2002 19:03:45
Showing 1 changed files
... ...
@@ -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() );