gh-141926: Do not unset RUNSHARED when cross-compiling (#141958)

This commit is contained in:
Zanie Blue 2025-12-04 20:15:04 -06:00 committed by GitHub
parent b3bf212898
commit 128d31637e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 8 deletions

View File

@ -0,0 +1,4 @@
``RUNSHARED`` is no longer cleared when cross-compiling. Previously,
``RUNSHARED`` was cleared when cross-compiling, which breaks PGO when using
``--enabled-shared`` on systems where the cross-compiled CPython is otherwise
executable (e.g., via transparent emulation).

4
configure generated vendored
View File

@ -7808,10 +7808,6 @@ fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
printf "%s\n" "$LDLIBRARY" >&6; }
if test "$cross_compiling" = yes; then
RUNSHARED=
fi
# HOSTRUNNER - Program to run CPython for the host platform
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOSTRUNNER" >&5
printf %s "checking HOSTRUNNER... " >&6; }

View File

@ -1639,10 +1639,6 @@ else # shared is disabled
fi
AC_MSG_RESULT([$LDLIBRARY])
if test "$cross_compiling" = yes; then
RUNSHARED=
fi
# HOSTRUNNER - Program to run CPython for the host platform
AC_MSG_CHECKING([HOSTRUNNER])
if test -z "$HOSTRUNNER"