summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/importdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index 234d3fa..2abef33 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -480,10 +480,10 @@ load_dynamic_module(name, pathname, fp)
shl_t lib;
int flags;
- flags = BIND_DEFERRED;
+ flags = BIND_FIRST | BIND_DEFERRED;
if (verbose)
{
- flags = BIND_IMMEDIATE | BIND_NONFATAL | BIND_VERBOSE;
+ flags = DYNAMIC_PATH | BIND_FIRST | BIND_IMMEDIATE | BIND_NONFATAL | BIND_VERBOSE;
printf("shl_load %s\n",pathname);
}
lib = shl_load(pathname, flags, 0);