mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-26 02:48:31 +01:00
Added RTLD_LOCAL to the dynamic linker flags
This commit is contained in:
parent
011e7ca409
commit
33b9b53328
@ -27,7 +27,7 @@ ModuleManager::Module_t ModuleManager::loadModule(std::string path) {
|
|||||||
mod.deleteInstance = (void(*)(Instance*))GetProcAddress(mod.handle, "_DELETE_INSTANCE_");
|
mod.deleteInstance = (void(*)(Instance*))GetProcAddress(mod.handle, "_DELETE_INSTANCE_");
|
||||||
mod.end = (void(*)())GetProcAddress(mod.handle, "_END_");
|
mod.end = (void(*)())GetProcAddress(mod.handle, "_END_");
|
||||||
#else
|
#else
|
||||||
mod.handle = dlopen(path.c_str(), RTLD_LAZY);
|
mod.handle = dlopen(path.c_str(), RTLD_LAZY RTLD_LOCAL);
|
||||||
if (mod.handle == NULL) {
|
if (mod.handle == NULL) {
|
||||||
spdlog::error("Couldn't load {0}.", path);
|
spdlog::error("Couldn't load {0}.", path);
|
||||||
mod.handle = NULL;
|
mod.handle = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user