]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
Added the RTLD_GLOBAL flag to the dlopen call, since some systems seem to require...
[xonotic/darkplaces.git] / sys_shared.c
index f37b67a4407452b4bb7ce8667c1ba2dc9aba019a..9abc08d4926dcca45503509a1f8317637e04aca2 100644 (file)
@@ -53,7 +53,7 @@ qboolean Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllf
 #ifdef WIN32
                dllhandle = LoadLibrary (dllnames[i]);
 #else
-               dllhandle = dlopen (dllnames[i], RTLD_LAZY);
+               dllhandle = dlopen (dllnames[i], RTLD_LAZY | RTLD_GLOBAL);
 #endif
                if (dllhandle)
                        break;
@@ -75,7 +75,7 @@ qboolean Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllf
 #ifdef WIN32
                        dllhandle = LoadLibrary (temp);
 #else
-                       dllhandle = dlopen (temp, RTLD_LAZY);
+                       dllhandle = dlopen (temp, RTLD_LAZY | RTLD_GLOBAL);
 #endif
                        if (dllhandle)
                                break;