Skip to content
Snippets Groups Projects

main/python3: give native threads 2MiB stack also

Merged Arnav Singh requested to merge Arnavion/aports:python3-stack into master
+ 3
2
@@ -4,7 +4,7 @@ pkgname=python3
# the python3-tkinter's pkgver needs to be synchronized with this.
pkgver=3.12.7
_basever="${pkgver%.*}"
pkgrel=0
pkgrel=1
pkgdesc="High-level scripting language"
url="https://www.python.org/"
arch="all"
@@ -108,7 +108,7 @@ build() {
# we want -O2 here for more speed for such a large interpreter.
export CFLAGS_NODIST="$CFLAGS -O2 -DTHREAD_STACK_SIZE=$stacksize"
export CXXFLAGS_NODIST="$CXXFLAGS -O2"
export LDFLAGS_NODIST="$LDFLAGS"
export LDFLAGS_NODIST="$LDFLAGS -Wl,-z,stack-size=$stacksize"
case "$CARCH" in
ppc64le)
@@ -120,6 +120,7 @@ build() {
;;
esac
# we set them via NODIST to not propagate them and duplicate them to modules
unset LDFLAGS CFLAGS CXXFLAGS CPPFLAGS
Loading