Commit e529745e authored by David Boucher's avatar David Boucher
Browse files

fix(library): RTLD_NOW replaced by RTLD_LAZY

parent 6da2aade
......@@ -62,7 +62,7 @@ bool library::is_loaded() const noexcept {
void library::load() {
if (_handle)
return;
if (!(_handle = dlopen(_filename.c_str(), RTLD_NOW | RTLD_GLOBAL)))
if (!(_handle = dlopen(_filename.c_str(), RTLD_LAZY | RTLD_GLOBAL)))
throw basic_error() << "load library failed: " << dlerror();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment