Skip to content

Commit 4e73aa3

Browse files
committed
Fix bad -pthread default when cross-compiling
See astral-sh#599.
1 parent 2af08c0 commit 4e73aa3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ else
306306
patch -p1 -i "${ROOT}/patch-python-configure-add-enable-static-libpython-for-interpreter-${PYTHON_MAJMIN_VERSION}.patch"
307307
fi
308308

309+
# When cross-compiling, ./configure checks that run code cannot be run,
310+
# and some of the defaults are wrong or unwanted, so we have to fix
311+
# those manually.
312+
# TODO(geofft): This cannot be the only thing.
313+
patch -p1 -i "${ROOT}/patch-python-configure-cross-assume-pthread.patch"
314+
309315
# We patched configure.ac above. Reflect those changes.
310316
autoconf
311317

0 commit comments

Comments
 (0)