From 8deb01868473832493a8aaa597030567345f8385 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Sat, 9 Oct 2021 18:34:44 +0200 Subject: [PATCH] Added RTLD_LOCAL to the dynamic linker flags FIX --- core/src/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/module.cpp b/core/src/module.cpp index 0bce855..255593a 100644 --- a/core/src/module.cpp +++ b/core/src/module.cpp @@ -27,7 +27,7 @@ ModuleManager::Module_t ModuleManager::loadModule(std::string path) { mod.deleteInstance = (void(*)(Instance*))GetProcAddress(mod.handle, "_DELETE_INSTANCE_"); mod.end = (void(*)())GetProcAddress(mod.handle, "_END_"); #else - mod.handle = dlopen(path.c_str(), RTLD_LAZY RTLD_LOCAL); + mod.handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_LOCAL); if (mod.handle == NULL) { spdlog::error("Couldn't load {0}.", path); mod.handle = NULL;