Skip to content

Commit a3272ed

Browse files
committed
gh-141926: Do not unset RUNSHARED when cross-compiling
1 parent 9f2a34a commit a3272ed

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Previously, ``RUNSHARED`` was cleared when cross-compiling, which breaks PGO
2+
when using ``--enabled-shared`` on systems where the cross-compiled CPython
3+
is otherwise executable (e.g., via transparent emulation). Now,
4+
``RUNSHARED`` is left set when cross-compiling unconditionally.

configure

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,10 +1630,6 @@ else # shared is disabled
16301630
fi
16311631
AC_MSG_RESULT([$LDLIBRARY])
16321632

1633-
if test "$cross_compiling" = yes; then
1634-
RUNSHARED=
1635-
fi
1636-
16371633
# HOSTRUNNER - Program to run CPython for the host platform
16381634
AC_MSG_CHECKING([HOSTRUNNER])
16391635
if test -z "$HOSTRUNNER"

0 commit comments

Comments
 (0)