Skip to content

Commit b01091a

Browse files
bpo-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using configure (GH-23708)
Now all platforms use a value for the "EXT_SUFFIX" build variable derived from SOABI (for instance in FreeBSD, "EXT_SUFFIX" is now ".cpython-310d.so" instead of ".so"). Previously only Linux, Mac and VxWorks were using a value for "EXT_SUFFIX" that included "SOABI". Co-authored-by: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit a44ce6c) Co-authored-by: Matti Picus <matti.picus@gmail.com>
1 parent 24862b0 commit b01091a

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Now all platforms use a value for the "EXT_SUFFIX" build variable derived
2+
from SOABI (for instance in freeBSD, "EXT_SUFFIX" is now ".cpython-310d.so"
3+
instead of ".so"). Previosuly only Linux, Mac and VxWorks were using a value
4+
for "EXT_SUFFIX" that included "SOABI".

configure

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15215,13 +15215,7 @@ _ACEOF
1521515215

1521615216
fi
1521715217

15218-
15219-
case $ac_sys_system in
15220-
Linux*|GNU*|Darwin|VxWorks)
15221-
EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
15222-
*)
15223-
EXT_SUFFIX=${SHLIB_SUFFIX};;
15224-
esac
15218+
EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
1522515219

1522615220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
1522715221
$as_echo_n "checking LDVERSION... " >&6; }

configure.ac

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4674,12 +4674,7 @@ if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then
46744674
fi
46754675

46764676
AC_SUBST(EXT_SUFFIX)
4677-
case $ac_sys_system in
4678-
Linux*|GNU*|Darwin|VxWorks)
4679-
EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
4680-
*)
4681-
EXT_SUFFIX=${SHLIB_SUFFIX};;
4682-
esac
4677+
EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
46834678

46844679
AC_MSG_CHECKING(LDVERSION)
46854680
LDVERSION='$(VERSION)$(ABIFLAGS)'

0 commit comments

Comments
 (0)