Fix undefined dlopen behaviour

Thanks to "yelnya face" (@yelnyaface) for debugging this
closes #1611
closes #1611
This commit is contained in:
LightCat 2022-03-24 20:28:56 +01:00 committed by GitHub
parent f25ad671de
commit 41c251369a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ void SharedObject::Load()
{
sleep(1);
}
while (!(lmap = (link_map *) dlopen(path.c_str(), RTLD_NOLOAD)))
while (!(lmap = (link_map *) dlopen(path.c_str(), RTLD_LAZY | RTLD_NOLOAD)))
{
sleep(1);
char *error = dlerror();