Kaydet (Commit) e3d7622f authored tarafından Jack Jansen's avatar Jack Jansen

Don't fail on importing things with undefined references. Unfortunately we

still fail on importing modules that link with libraries that fail
their initialization code (such as windowing libraries when we don't have
access to the window server) and that is what I really wanted to fix.
üst dd19cf81
...@@ -148,7 +148,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, ...@@ -148,7 +148,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
break; break;
} }
if (errString == NULL) { if (errString == NULL) {
newModule = NSLinkModule(image, pathname, TRUE); newModule = NSLinkModule(image, pathname,
NSLINKMODULE_OPTION_BINDNOW|NSLINKMODULE_OPTION_RETURN_ON_ERROR);
if (!newModule) if (!newModule)
errString = "Failure linking new module"; errString = "Failure linking new module";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment