зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1441454 - Dynamically load library with global linkage so that we can access symbols within them, r=jorendorff
--HG-- extra : rebase_source : 31c4083e472f99f7bdc775c6ba26d5cee5a92687 extra : amend_source : db57cf78485871f3850f0d5a0a0f1ea66e6a2882
This commit is contained in:
Родитель
b1ab6c8442
Коммит
c490bdeb07
|
@ -8890,7 +8890,10 @@ class AutoLibraryLoader {
|
|||
}
|
||||
|
||||
PRLibrary* load(const char* path) {
|
||||
PRLibrary* dll = PR_LoadLibrary(path);
|
||||
PRLibSpec libSpec;
|
||||
libSpec.type = PR_LibSpec_Pathname;
|
||||
libSpec.value.pathname = path;
|
||||
PRLibrary* dll = PR_LoadLibraryWithFlags(libSpec, PR_LD_NOW | PR_LD_GLOBAL);
|
||||
if (!dll) {
|
||||
#ifdef JS_POSIX_NSPR
|
||||
fprintf(stderr, "LoadLibrary '%s' failed: %s\n", path, dlerror());
|
||||
|
|
Загрузка…
Ссылка в новой задаче