Use shared-library sonames for runtime dlopen paths.
Installed plugin libs ship libFoo.so.N without the linker namelink (libFoo.so); load by soname so snaps and NAMELINK_SKIP installs work. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -705,9 +705,9 @@ sscl::co::ViralNonPostingInvoker<int> livoxGen1_initializeCInd()
|
||||
}
|
||||
|
||||
// Load LivoxProto1 library
|
||||
auto libPath = smoHooksPtr->searchForLibInSmoSearchPaths("liblivoxProto1.so");
|
||||
auto libPath = smoHooksPtr->searchForLibInSmoSearchPaths("liblivoxProto1.so.0");
|
||||
livoxProto1.dlopenHandle.reset(dlopen(
|
||||
libPath.value_or("liblivoxProto1.so").c_str(),
|
||||
libPath.value_or("liblivoxProto1.so.0").c_str(),
|
||||
RTLD_LAZY));
|
||||
if (!livoxProto1.dlopenHandle) {
|
||||
throw std::runtime_error(
|
||||
|
||||
Reference in New Issue
Block a user