head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.04.06.13.46.38; author nia; state Exp; branches; next ; commitid 271PcuMBunWn3UAG; desc @@ 1.1 log @nchat: Initial import. nchat is a multi-protocol terminal-based messaging client. Note: Only the Telegram functionality is available in this package. @ text @$NetBSD$ Load the libs from our own isolated directory. --- src/main.cpp.orig 2026-04-06 12:01:44.350189123 +0000 +++ src/main.cpp @@@@ -81,7 +81,7 @@@@ class ProtocolFactory : public ProtocolBaseFactory (pu std::shared_ptr protocol; #ifdef HAS_DYNAMICLOAD std::string libPath = - FileUtil::DirName(FileUtil::GetSelfPath()) + "/../" CMAKE_INSTALL_LIBDIR "/" + T::GetLibName() + + FileUtil::DirName(FileUtil::GetSelfPath()) + "/../" CMAKE_INSTALL_LIBDIR "/nchat/" + T::GetLibName() + FileUtil::GetLibSuffix(); std::string createFunc = T::GetCreateFunc(); void* handle = dlopen(libPath.c_str(), RTLD_LAZY); @