Skip to content

Commit

Permalink
Fix SoapySDR::loadModule dlopen to hide symbols using RTLD_LOCAL (#434)
Browse files Browse the repository at this point in the history
Closes #430

Co-authored-by: Niro Mahasinghe <npm-sdr@users.noreply.github.com>
  • Loading branch information
zuckschwerdt and npm-sdr authored Apr 10, 2024
1 parent efdc776 commit 6c96090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Modules.in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c96090

Please # to comment.