mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
[3.13] gh-121103: Put free-threaded libraries in lib/python3.14t
(GH-121293) (#121631)
On POSIX systems, excluding macOS framework installs, the lib directory
for the free-threaded build now includes a "t" suffix to avoid conflicts
with a co-located default build installation.
(cherry picked from commit e8c91d90ba
)
Co-authored-by: Sam Gross <colesbury@gmail.com>
This commit is contained in:
parent
c6dbfbbe3c
commit
35f7155bc3
13 changed files with 77 additions and 40 deletions
13
configure.ac
13
configure.ac
|
@ -1739,7 +1739,9 @@ fi
|
|||
|
||||
# For calculating the .so ABI tag.
|
||||
AC_SUBST([ABIFLAGS])
|
||||
AC_SUBST([ABI_THREAD])
|
||||
ABIFLAGS=""
|
||||
ABI_THREAD=""
|
||||
|
||||
# Check for --disable-gil
|
||||
# --disable-gil
|
||||
|
@ -1756,6 +1758,7 @@ then
|
|||
[Define if you want to disable the GIL])
|
||||
# Add "t" for "threaded"
|
||||
ABIFLAGS="${ABIFLAGS}t"
|
||||
ABI_THREAD="t"
|
||||
fi
|
||||
|
||||
# Check for --with-pydebug
|
||||
|
@ -6195,11 +6198,11 @@ fi
|
|||
|
||||
|
||||
AC_SUBST([BINLIBDEST])
|
||||
BINLIBDEST='$(LIBDIR)/python$(VERSION)'
|
||||
BINLIBDEST='$(LIBDIR)/python$(VERSION)$(ABI_THREAD)'
|
||||
|
||||
|
||||
# Check for --with-platlibdir
|
||||
# /usr/$LIDIRNAME/python$VERSION
|
||||
# /usr/$PLATLIBDIR/python$(VERSION)$(ABI_THREAD)
|
||||
AC_SUBST([PLATLIBDIR])
|
||||
PLATLIBDIR="lib"
|
||||
AC_MSG_CHECKING([for --with-platlibdir])
|
||||
|
@ -6218,7 +6221,7 @@ if test -n "$withval" -a "$withval" != yes -a "$withval" != no
|
|||
then
|
||||
AC_MSG_RESULT([yes])
|
||||
PLATLIBDIR="$withval"
|
||||
BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)'
|
||||
BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)$(ABI_THREAD)'
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi],
|
||||
|
@ -6228,9 +6231,9 @@ fi],
|
|||
dnl define LIBPL after ABIFLAGS and LDVERSION is defined.
|
||||
AC_SUBST([PY_ENABLE_SHARED])
|
||||
if test x$PLATFORM_TRIPLET = x; then
|
||||
LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}"
|
||||
LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}"
|
||||
else
|
||||
LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
|
||||
LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
|
||||
fi
|
||||
AC_SUBST([LIBPL])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue