]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141926: Do not unset `RUNSHARED` when cross-compiling (#141958)
authorZanie Blue <contact@zanie.dev>
Fri, 5 Dec 2025 02:15:04 +0000 (20:15 -0600)
committerGitHub <noreply@github.com>
Fri, 5 Dec 2025 02:15:04 +0000 (02:15 +0000)
Misc/NEWS.d/next/Build/2025-11-25-13-17-47.gh-issue-141926.KmuM2h.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Build/2025-11-25-13-17-47.gh-issue-141926.KmuM2h.rst b/Misc/NEWS.d/next/Build/2025-11-25-13-17-47.gh-issue-141926.KmuM2h.rst
new file mode 100644 (file)
index 0000000..dab79ba
--- /dev/null
@@ -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).
index 620878bb1813786e303b532ae8b654aa8628afb4..1561f7f4134ac2038a7be42ca819aa43278643f4 100755 (executable)
--- a/configure
+++ b/configure
@@ -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; }
index 8ef479fe32036cb30bc729ca79e9f290339addde..f2a7319d22d24bbfe9c1e237d70c3d34e58a580f 100644 (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"