]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Added the RTLD_GLOBAL flag to the dlopen call, since some systems seem to require...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 21 Aug 2005 07:54:56 +0000 (07:54 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 21 Aug 2005 07:54:56 +0000 (07:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5630 d7cf8633-e32d-0410-b094-e92efae38249

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;