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:
@@ -238,11 +238,11 @@ sscl::co::ViralNonPostingInvoker<int> lcameraBuff_initializeCInd()
|
||||
|
||||
const std::optional<std::string> libPath =
|
||||
lcameraBuffSmoHooksPtr->searchForLibInSmoSearchPaths(
|
||||
"liblcameraDev.so");
|
||||
"liblcameraDev.so.0");
|
||||
|
||||
lcameraDevDll.dlopenHandle.reset(
|
||||
dlopen(
|
||||
libPath.value_or("liblcameraDev.so").c_str(),
|
||||
libPath.value_or("liblcameraDev.so.0").c_str(),
|
||||
RTLD_LAZY));
|
||||
|
||||
if (!lcameraDevDll.dlopenHandle)
|
||||
|
||||
@@ -187,7 +187,7 @@ TEST_F(LcameraBuffConfigureHilTest, AttachThreeYuvChannelsWithOptPlanar480p)
|
||||
const char *libPathEnv = std::getenv("LCAMERADEV_LIB_PATH");
|
||||
if (libPathEnv == nullptr || std::string(libPathEnv).empty())
|
||||
{
|
||||
GTEST_SKIP() << "Set LCAMERADEV_LIB_PATH to liblcameraDev.so for HIL attach";
|
||||
GTEST_SKIP() << "Set LCAMERADEV_LIB_PATH to liblcameraDev.so.0 for HIL attach";
|
||||
}
|
||||
|
||||
runOnProbeThread(
|
||||
|
||||
Reference in New Issue
Block a user