File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -6705,7 +6705,7 @@ AC_MSG_CHECKING([ABIFLAGS])
67056705AC_MSG_RESULT ( [ $ABIFLAGS] )
67066706AC_MSG_CHECKING ( [ SOABI] )
67076707case $host_os in
6708- mingw*) SOABI='cp'`echo $VERSION | tr -d .`;;
6708+ mingw*) SOABI='cp'`echo $VERSION | tr -d .`${ABI_THREAD}-${PYD_PLATFORM_TAG} ;;
67096709 *) SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${SOABI_PLATFORM:+-$SOABI_PLATFORM};;
67106710esac
67116711AC_MSG_RESULT ( [ $SOABI] )
@@ -6716,20 +6716,23 @@ if test "$Py_DEBUG" = 'true'; then
67166716 # Similar to SOABI but remove "d" flag from ABIFLAGS
67176717 AC_SUBST ( [ ALT_SOABI] )
67186718 case $host_os in
6719- mingw*) ALT_SOABI='cp'`echo $VERSION | tr -d .`;;
6719+ mingw*) ALT_SOABI='cp'`echo $VERSION | tr -d .`${ABI_THREAD}-${PYD_PLATFORM_TAG} ;;
67206720 *) ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${SOABI_PLATFORM:+-$SOABI_PLATFORM};;
67216721 esac
67226722 AC_DEFINE_UNQUOTED ( [ ALT_SOABI] , [ "${ALT_SOABI}"] ,
67236723 [ Alternative SOABI used in debug build to load C extensions built in release mode] )
67246724fi
67256725
67266726AC_SUBST ( [ EXT_SUFFIX] )
6727- VERSION_NO_DOTS=$(echo $LDVERSION | tr -d .)
6728- if test -n "${PYD_PLATFORM_TAG}"; then
6729- EXT_SUFFIX="${ABIFLAGS}.cp${VERSION_NO_DOTS}-${PYD_PLATFORM_TAG}${SHLIB_SUFFIX}"
6730- else
6731- EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
6727+
6728+ PYD_DEBUG_SUFFIX=""
6729+ if test "$Py_DEBUG" = "true"; then
6730+ PYD_DEBUG_SUFFIX="_d"
67326731fi
6732+ case $host_os in
6733+ mingw*) EXT_SUFFIX=${PYD_DEBUG_SUFFIX}.${SOABI}${SHLIB_SUFFIX};;
6734+ *) EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
6735+ esac
67336736
67346737AC_MSG_CHECKING ( [ LDVERSION] )
67356738LDVERSION='$(VERSION)$(ABIFLAGS)'
You can’t perform that action at this time.
0 commit comments