From dacbd300cf451c07f4195083f52356e1ad4b8219 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Tue, 11 Jan 2022 14:32:28 +0000 Subject: system/python3: increase stack size on ppc64. fixes #451. --- system/python3/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'system/python3') diff --git a/system/python3/APKBUILD b/system/python3/APKBUILD index b3d971c8e..a4a44e6fb 100644 --- a/system/python3/APKBUILD +++ b/system/python3/APKBUILD @@ -95,7 +95,11 @@ build() { # set thread stack size to 1MB so we don't segfault before we hit # sys.getrecursionlimit() - make EXTRA_CFLAGS="$CFLAGS -DTHREAD_STACK_SIZE=0x100000" + stacksize=0x100000; + case "$CARCH" in + ppc64) stacksize=0x200000;; + esac + make EXTRA_CFLAGS="$CFLAGS -DTHREAD_STACK_SIZE=$stacksize" } check() { -- cgit v1.2.3-60-g2f50