mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
62dfd7d6fe
commit
5422e3cfb7
5 changed files with 29 additions and 2 deletions
|
@ -4627,6 +4627,14 @@ AC_MSG_CHECKING(SOABI)
|
|||
SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
|
||||
AC_MSG_RESULT($SOABI)
|
||||
|
||||
if test "$Py_DEBUG" = 'true'; then
|
||||
# Similar to SOABI but remove "d" flag from ABIFLAGS
|
||||
AC_SUBST(ALT_SOABI)
|
||||
ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
|
||||
AC_DEFINE_UNQUOTED(ALT_SOABI, "${ALT_SOABI}",
|
||||
[Alternative SOABI used in debug build to load C extensions built in release mode])
|
||||
fi
|
||||
|
||||
AC_SUBST(EXT_SUFFIX)
|
||||
case $ac_sys_system in
|
||||
Linux*|GNU*|Darwin|VxWorks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue