Skip to content

Commit 9152608

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

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+
``RUNSHARED`` is no longer cleared when cross-compiling. Previously,
2+
``RUNSHARED`` was cleared when cross-compiling, which breaks PGO when using
3+
``--enabled-shared`` on systems where the cross-compiled CPython is otherwise
4+
executable (e.g., via transparent emulation).

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)