mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
plugins: use RTLD_NOW instead of RTLD_LAZY
This commit is contained in:
parent
0aca3fb5af
commit
b5a4bd22fb
@ -80,7 +80,7 @@ LibHandle_t libraryLoad_(const FileSystemPath_t& filename)
|
|||||||
return LoadLibraryW(filename.c_str());
|
return LoadLibraryW(filename.c_str());
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__linux__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__HAIKU__) || defined(__GLIBC__)
|
#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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user