fix: use RTLD_GLOBAL when loading modules to expose host symbols
This commit is contained in:
+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