diff --git a/gpt4all-backend/dlhandle.h b/gpt4all-backend/dlhandle.h index 0fae068f..c9e3f70e 100644 --- a/gpt4all-backend/dlhandle.h +++ b/gpt4all-backend/dlhandle.h @@ -18,7 +18,7 @@ public: }; Dlhandle() : chandle(nullptr) {} - Dlhandle(const std::string& fpath, int flags = RTLD_LAZY) { + Dlhandle(const std::string& fpath, int flags = RTLD_LAZY | RTLD_LOCAL) { chandle = dlopen(fpath.c_str(), flags); if (!chandle) { throw Exception("dlopen(\""+fpath+"\"): "+dlerror());