From fabc4571b25251d5200e03ce45cd5ee302a44533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 13 Mar 2026 12:17:19 +0200 Subject: [PATCH] build-python: Build the native libffi as a static library only This fixes importing the _ctypes module, if a shared libffi doesn't happen to exist on the host system with the right so version. Since Python 3.12, such a build error ends up failing the build, while it previously passed silently even if some parts of the build had failed. --- build-python.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-python.sh b/build-python.sh index 15058e6..fee1bb4 100755 --- a/build-python.sh +++ b/build-python.sh @@ -92,7 +92,7 @@ if [ -z "$HOST" ]; then [ -z "$CLEAN" ] || rm -rf $BUILDDIR mkdir -p $BUILDDIR cd $BUILDDIR - ../configure --prefix="$PREFIX" --disable-symvers --disable-docs + ../configure --prefix="$PREFIX" --disable-symvers --disable-docs --disable-shared $MAKE -j$CORES $MAKE install cd ../..