File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ pushd "Python-${CPYTHON_VERSION}"
36
36
PREFIX=" /opt/_internal/cpython-${CPYTHON_VERSION} "
37
37
mkdir -p " ${PREFIX} /lib"
38
38
CFLAGS_EXTRA=" "
39
+ LDFLAGS_EXTRA=" "
39
40
CONFIGURE_ARGS=(--disable-shared --with-ensurepip=no)
40
41
41
42
if [ " ${4:- } " == " nogil" ]; then
@@ -77,11 +78,17 @@ if [ "${AUDITWHEEL_ARCH}" == "x86_64" ] && echo | gcc -S -x c -v - 2>&1 | grep '
77
78
export EXTRA_CFLAGS=" -mtune=generic -march=x86-64"
78
79
fi
79
80
81
+ if [ " ${BASE_POLICY} " == " musllinux" ]; then
82
+ STACK_SIZE=0x200000
83
+ CFLAGS_EXTRA=" ${CFLAGS_EXTRA} -DTHREAD_STACK_SIZE=${STACK_SIZE} "
84
+ LDFLAGS_EXTRA=" ${LDFLAGS_EXTRA} -Wl,-z,stack-size=${STACK_SIZE} "
85
+ fi
86
+
80
87
# configure with hardening options only for the interpreter & stdlib C extensions
81
88
# do not change the default for user built extension (yet?)
82
89
./configure \
83
90
CFLAGS_NODIST=" ${MANYLINUX_CFLAGS} ${MANYLINUX_CPPFLAGS} ${CFLAGS_EXTRA} " \
84
- LDFLAGS_NODIST=" ${MANYLINUX_LDFLAGS} " \
91
+ LDFLAGS_NODIST=" ${MANYLINUX_LDFLAGS} ${LDFLAGS_EXTRA} " \
85
92
" --prefix=${PREFIX} " " ${CONFIGURE_ARGS[@]} " > /dev/null
86
93
make > /dev/null
87
94
make install > /dev/null
You can’t perform that action at this time.
0 commit comments