File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ bool CDynamicLibrary::Load ( const char* szFilename )
86
86
LocalFree ( lpMsgBuf );
87
87
}
88
88
#else
89
- m_hModule = dlopen ( szFilename, RTLD_NOW );
89
+ m_hModule = dlopen ( szFilename, RTLD_NOW | RTLD_DEEPBIND );
90
90
91
91
// Output error if needed
92
92
if ( !m_hModule )
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ bool CDynamicLibrary::Load ( const char* szFilename )
39
39
#ifdef WIN32
40
40
m_hModule = LoadLibrary ( szFilename );
41
41
#else
42
- m_hModule = dlopen ( szFilename, RTLD_NOW );
42
+ m_hModule = dlopen ( szFilename, RTLD_NOW | RTLD_DEEPBIND );
43
43
44
44
// Output error if needed
45
45
if ( !m_hModule )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ bool CDynamicLibrary::Load ( const char* szFilename )
46
46
}
47
47
48
48
#else
49
- m_hModule = dlopen ( szFilename, RTLD_NOW );
49
+ m_hModule = dlopen ( szFilename, RTLD_NOW | RTLD_DEEPBIND );
50
50
51
51
// Output error if needed
52
52
if ( !m_hModule )
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ int CLuaModule::_LoadModule ( void )
79
79
strError = SString ( " %d" , GetLastError () );
80
80
SetCurrentDirectory ( strSavedCurrentDirectory );
81
81
#else
82
- m_hModule = dlopen ( m_szFileName, RTLD_NOW );
82
+ m_hModule = dlopen ( m_szFileName, RTLD_NOW | RTLD_DEEPBIND );
83
83
if ( m_hModule == NULL )
84
84
strError = dlerror ();
85
85
#endif
You can’t perform that action at this time.
0 commit comments