diff --git a/lib/Modules.in.cpp b/lib/Modules.in.cpp index fcb76d44..01e1c1a5 100644 --- a/lib/Modules.in.cpp +++ b/lib/Modules.in.cpp @@ -256,7 +256,7 @@ std::string SoapySDR::loadModule(const std::string &path) getModuleLoading().clear(); if (handle == NULL) return "LoadLibrary() failed: " + GetLastErrorMessage(); #else - void *handle = dlopen(path.c_str(), RTLD_LAZY); + void *handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_LOCAL); getModuleLoading().clear(); if (handle == NULL) return "dlopen() failed: " + std::string(dlerror()); #endif