Skip to content

Commit 367e354

Browse files
committed
soabi fixes
1 parent 631f439 commit 367e354

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

configure.ac

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6705,7 +6705,7 @@ AC_MSG_CHECKING([ABIFLAGS])
67056705
AC_MSG_RESULT([$ABIFLAGS])
67066706
AC_MSG_CHECKING([SOABI])
67076707
case $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};;
67106710
esac
67116711
AC_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])
67246724
fi
67256725

67266726
AC_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"
67326731
fi
6732+
case $host_os in
6733+
mingw*) EXT_SUFFIX=${PYD_DEBUG_SUFFIX}.${SOABI}${SHLIB_SUFFIX};;
6734+
*) EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
6735+
esac
67336736

67346737
AC_MSG_CHECKING([LDVERSION])
67356738
LDVERSION='$(VERSION)$(ABIFLAGS)'

0 commit comments

Comments
 (0)