From: molivier Date: Sun, 21 Aug 2005 07:54:56 +0000 (+0000) Subject: Added the RTLD_GLOBAL flag to the dlopen call, since some systems seem to require... X-Git-Tag: xonotic-v0.1.0preview~4634 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0d0385c4d5bb47ebda6e18fd1e18d1ff3db80519;p=xonotic%2Fdarkplaces.git Added the RTLD_GLOBAL flag to the dlopen call, since some systems seem to require that for some DLLs to work correctly. Thanks to Andreas Dehmel for the patch git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5630 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sys_shared.c b/sys_shared.c index f37b67a4..9abc08d4 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -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;