Permalink
Browse files

Do weird things

  • Loading branch information...
Jusonex committed Jul 19, 2017
1 parent e95a79c commit 07a579338313dba05a346b6e1140b8bbbdd1159e
@@ -86,7 +86,7 @@ bool CDynamicLibrary::Load ( const char* szFilename )
LocalFree ( lpMsgBuf );
}
#else
m_hModule = dlopen ( szFilename, RTLD_NOW );
m_hModule = dlopen ( szFilename, RTLD_NOW|RTLD_GLOBAL );
// Output error if needed
if ( !m_hModule )
View
@@ -46,7 +46,7 @@ project "Core"
filter "system:linux"
links { "ncursesw", "breakpad", "rt" }
buildoptions { "-pthread" }
linkoptions { "-pthread" }
linkoptions { "-pthread", "-Wl,-E" }
buildoptions { "-fvisibility=default" }
filter "platforms:x64"
targetdir(buildpath("server/x64"))
@@ -39,7 +39,7 @@ bool CDynamicLibrary::Load ( const char* szFilename )
#ifdef WIN32
m_hModule = LoadLibrary ( szFilename );
#else
m_hModule = dlopen ( szFilename, RTLD_NOW );
m_hModule = dlopen ( szFilename, RTLD_NOW | RTLD_GLOBAL);
// Output error if needed
if ( !m_hModule )
@@ -57,6 +57,7 @@ ASE::ASE ( CMainConfig* pMainConfig, CPlayerManager* pPlayerManager, unsigned sh
std::stringstream ss;
ss << usPort;
m_strPort = ss.str();
std::cout << "Port: " << m_strPort << " " << usPort << std::endl;
m_strMtaAseVersion = MTA_DM_ASE_VERSION;
}
@@ -46,7 +46,7 @@ bool CDynamicLibrary::Load ( const char* szFilename )
}
#else
m_hModule = dlopen ( szFilename, RTLD_NOW );
m_hModule = dlopen ( szFilename, RTLD_NOW|RTLD_GLOBAL );
// Output error if needed
if ( !m_hModule )
View
@@ -100,7 +100,7 @@ workspace "MTASA"
filter "system:linux"
vectorextensions "SSE2"
buildoptions { "-fvisibility=hidden", "-fvisibility-inlines-hidden" }
buildoptions { "-fvisibility=hidden" }
-- Only build the client on Windows
if os.target() == "windows" then

0 comments on commit 07a5793

Please sign in to comment.