diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-25 23:40:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 23:40:00 (GMT) |
commit | 5422e3cfb7ffc50b147b4662d6f596cd61533754 (patch) | |
tree | 6787f3f53164785273a6d4f59cd13d5a68ce1a27 /Python | |
parent | 62dfd7d6fe11bfa0cd1d7376382c8e7b1275e38c (diff) | |
download | cpython-5422e3cfb7ffc50b147b4662d6f596cd61533754.zip cpython-5422e3cfb7ffc50b147b4662d6f596cd61533754.tar.gz cpython-5422e3cfb7ffc50b147b4662d6f596cd61533754.tar.bz2 |
bpo-36722: Debug build loads libraries built in release mode (GH-12952)
In debug build, import now also looks for C extensions compiled in
release mode and for C extensions compiled in the stable ABI.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/dynload_shlib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index e5bddaa..c51f97a 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -38,9 +38,10 @@ const char *_PyImport_DynLoadFiletab[] = { ".dll", #else /* !__CYGWIN__ */ "." SOABI ".so", -#ifndef Py_DEBUG +#ifdef ALT_SOABI + "." ALT_SOABI ".so", +#endif ".abi" PYTHON_ABI_STRING ".so", -#endif /* ! Py_DEBUG */ ".so", #endif /* __CYGWIN__ */ NULL, |