summaryrefslogtreecommitdiff
path: root/system/python3
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-01-11 14:32:28 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-05-01 17:05:43 -0500
commitdacbd300cf451c07f4195083f52356e1ad4b8219 (patch)
treeb7c293650ba813c3aff7467491a5593d0e366212 /system/python3
parent5c5f97caca3c9a038732f2732f704d839665ef4e (diff)
downloadpackages-dacbd300cf451c07f4195083f52356e1ad4b8219.tar.gz
packages-dacbd300cf451c07f4195083f52356e1ad4b8219.tar.bz2
packages-dacbd300cf451c07f4195083f52356e1ad4b8219.tar.xz
packages-dacbd300cf451c07f4195083f52356e1ad4b8219.zip
system/python3: increase stack size on ppc64. fixes #451.
Diffstat (limited to 'system/python3')
-rw-r--r--system/python3/APKBUILD6
1 files changed, 5 insertions, 1 deletions
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() {