From: Jack Jansen Date: Thu, 6 Dec 2001 22:58:56 +0000 (+0000) Subject: Don't fail on importing things with undefined references. Unfortunately we X-Git-Tag: v2.2.1c1~496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3d7622fb3e595db29b690751a00406b0e3cf975;p=python 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. --- diff --git a/Python/dynload_next.c b/Python/dynload_next.c index 671b26f235..892bb47842 100644 --- a/Python/dynload_next.c +++ b/Python/dynload_next.c @@ -148,7 +148,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, break; } if (errString == NULL) { - newModule = NSLinkModule(image, pathname, TRUE); + newModule = NSLinkModule(image, pathname, + NSLINKMODULE_OPTION_BINDNOW|NSLINKMODULE_OPTION_RETURN_ON_ERROR); if (!newModule) errString = "Failure linking new module"; }