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