Merge pull request #9081 from Zer0xFF/patch-1

explicit use flag `RTLD_LOCAL` with dlopen()
This commit is contained in:
Twinaphex 2019-07-09 18:27:05 +02:00 committed by GitHub
commit 283ff769a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ dylib_t dylib_load(const char *path)
}
last_dyn_error[0] = 0;
#else
dylib_t lib = dlopen(path, RTLD_LAZY);
dylib_t lib = dlopen(path, RTLD_LAZY | RTLD_LOCAL);
#endif
return lib;
}