From b5a4bd22fbd2f00ce85f01def9b58cd56556f7d9 Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Thu, 18 Feb 2021 14:45:08 +0300 Subject: [PATCH] plugins: use RTLD_NOW instead of RTLD_LAZY --- .../core/include/opencv2/core/utils/plugin_loader.private.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/utils/plugin_loader.private.hpp b/modules/core/include/opencv2/core/utils/plugin_loader.private.hpp index 000e5f6967..bc3ae4d08a 100644 --- a/modules/core/include/opencv2/core/utils/plugin_loader.private.hpp +++ b/modules/core/include/opencv2/core/utils/plugin_loader.private.hpp @@ -80,7 +80,7 @@ LibHandle_t libraryLoad_(const FileSystemPath_t& filename) return LoadLibraryW(filename.c_str()); #endif #elif defined(__linux__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__HAIKU__) || defined(__GLIBC__) - return dlopen(filename.c_str(), RTLD_LAZY); + return dlopen(filename.c_str(), RTLD_NOW); #endif }