summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-25 23:40:00 (GMT)
committerGitHub <noreply@github.com>2019-04-25 23:40:00 (GMT)
commit5422e3cfb7ffc50b147b4662d6f596cd61533754 (patch)
tree6787f3f53164785273a6d4f59cd13d5a68ce1a27 /configure
parent62dfd7d6fe11bfa0cd1d7376382c8e7b1275e38c (diff)
downloadcpython-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 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index b02d17c..b2775cf 100755
--- a/configure
+++ b/configure
@@ -632,6 +632,7 @@ THREADHEADERS
LIBPL
PY_ENABLE_SHARED
EXT_SUFFIX
+ALT_SOABI
SOABI
LIBC
LIBM
@@ -15127,6 +15128,17 @@ SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFO
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
$as_echo "$SOABI" >&6; }
+if test "$Py_DEBUG" = 'true'; then
+ # Similar to SOABI but remove "d" flag from ABIFLAGS
+
+ ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
+
+cat >>confdefs.h <<_ACEOF
+#define ALT_SOABI "${ALT_SOABI}"
+_ACEOF
+
+fi
+
case $ac_sys_system in
Linux*|GNU*|Darwin|VxWorks)