From 0d0385c4d5bb47ebda6e18fd1e18d1ff3db80519 Mon Sep 17 00:00:00 2001 From: molivier Date: Sun, 21 Aug 2005 07:54:56 +0000 Subject: [PATCH] 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 --- sys_shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2