fix: use RTLD_GLOBAL when loading modules to expose host symbols
This commit is contained in:
1 parent
eb4b4c1f80
commit
95d7191fdd
1 file changed
+1
-1
+1
-1
@@ -278,7 +278,7 @@ void *platform_load_library(const char *path)
|
||||
#ifdef _WIN32
|
||||
return (void *)LoadLibraryA(path);
|
||||
#else
|
||||
return dlopen(path, RTLD_NOW);
|
||||
return dlopen(path, RTLD_NOW | RTLD_GLOBAL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user