summaryrefslogtreecommitdiffstats
path: root/Python/dynload_next.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/dynload_next.c')
-rw-r--r--Python/dynload_next.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/dynload_next.c b/Python/dynload_next.c
index 671b26f..892bb47 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";
}