X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sys_shared.c;h=9abc08d4926dcca45503509a1f8317637e04aca2;hb=d0d4509a66a143530db1f89ac0a1b079c4693e8e;hp=f37b67a4407452b4bb7ce8667c1ba2dc9aba019a;hpb=fa69495702c2a056fadd56ab0a19f8fae1c08348;p=xonotic%2Fdarkplaces.git 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;