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}"
3636PREFIX=" /opt/_internal/cpython-${CPYTHON_VERSION} "
3737mkdir -p " ${PREFIX} /lib"
3838CFLAGS_EXTRA=" "
39+ LDFLAGS_EXTRA=" "
3940CONFIGURE_ARGS=(--disable-shared --with-ensurepip=no)
4041
4142if [ " ${4:- } " == " nogil" ]; then
@@ -77,11 +78,17 @@ if [ "${AUDITWHEEL_ARCH}" == "x86_64" ] && echo | gcc -S -x c -v - 2>&1 | grep '
7778 export EXTRA_CFLAGS=" -mtune=generic -march=x86-64"
7879fi
7980
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+
8087# configure with hardening options only for the interpreter & stdlib C extensions
8188# do not change the default for user built extension (yet?)
8289./configure \
8390 CFLAGS_NODIST=" ${MANYLINUX_CFLAGS} ${MANYLINUX_CPPFLAGS} ${CFLAGS_EXTRA} " \
84- LDFLAGS_NODIST=" ${MANYLINUX_LDFLAGS} " \
91+ LDFLAGS_NODIST=" ${MANYLINUX_LDFLAGS} ${LDFLAGS_EXTRA} " \
8592 " --prefix=${PREFIX} " " ${CONFIGURE_ARGS[@]} " > /dev/null
8693make > /dev/null
8794make install > /dev/null
You can’t perform that action at this time.
0 commit comments