From d2b7e15c0c9c8ddb9bc6b98c3f320addd293ed9c Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 25 Feb 2025 16:07:40 -0600 Subject: [PATCH] Statically link the `python` executable to `libpython` and disable the shared library --- cpython-unix/build-cpython.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpython-unix/build-cpython.sh b/cpython-unix/build-cpython.sh index 566700e0..7d79055a 100755 --- a/cpython-unix/build-cpython.sh +++ b/cpython-unix/build-cpython.sh @@ -401,8 +401,8 @@ if [ "${CC}" = "musl-clang" ]; then cp "$h" /tools/host/include/ done else - CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-shared" - PYBUILD_SHARED=1 + CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-shared=no" + PYBUILD_SHARED=0 fi if [ -n "${CPYTHON_DEBUG}" ]; then