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 @@ -6700,7 +6700,7 @@ AC_MSG_CHECKING([ABIFLAGS])
67006700AC_MSG_RESULT ( [ $ABIFLAGS] )
67016701AC_MSG_CHECKING ( [ SOABI] )
67026702case $host_os in
6703- mingw*) SOABI='cp'`echo $VERSION | tr -d .`;;
6703+ mingw*) SOABI='cp'`echo $VERSION | tr -d .`${ABI_THREAD}-${PYD_PLATFORM_TAG} ;;
67046704 *) SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${SOABI_PLATFORM:+-$SOABI_PLATFORM};;
67056705esac
67066706AC_MSG_RESULT ( [ $SOABI] )
@@ -6711,20 +6711,23 @@ if test "$Py_DEBUG" = 'true'; then
67116711 # Similar to SOABI but remove "d" flag from ABIFLAGS
67126712 AC_SUBST ( [ ALT_SOABI] )
67136713 case $host_os in
6714- mingw*) ALT_SOABI='cp'`echo $VERSION | tr -d .`;;
6714+ mingw*) ALT_SOABI='cp'`echo $VERSION | tr -d .`${ABI_THREAD}-${PYD_PLATFORM_TAG} ;;
67156715 *) ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${SOABI_PLATFORM:+-$SOABI_PLATFORM};;
67166716 esac
67176717 AC_DEFINE_UNQUOTED ( [ ALT_SOABI] , [ "${ALT_SOABI}"] ,
67186718 [ Alternative SOABI used in debug build to load C extensions built in release mode] )
67196719fi
67206720
67216721AC_SUBST ( [ EXT_SUFFIX] )
6722- VERSION_NO_DOTS=$(echo $LDVERSION | tr -d .)
6723- if test -n "${PYD_PLATFORM_TAG}"; then
6724- EXT_SUFFIX="${ABIFLAGS}.cp${VERSION_NO_DOTS}-${PYD_PLATFORM_TAG}${SHLIB_SUFFIX}"
6725- else
6726- EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
6722+
6723+ PYD_DEBUG_SUFFIX=""
6724+ if test "$Py_DEBUG" = "true"; then
6725+ PYD_DEBUG_SUFFIX="_d"
67276726fi
6727+ case $host_os in
6728+ mingw*) EXT_SUFFIX=${PYD_DEBUG_SUFFIX}.${SOABI}${SHLIB_SUFFIX};;
6729+ *) EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
6730+ esac
67286731
67296732AC_MSG_CHECKING ( [ LDVERSION] )
67306733LDVERSION='$(VERSION)$(ABIFLAGS)'
You can’t perform that action at this time.
0 commit comments