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
@@ -74,11 +75,17 @@ if [ "${AUDITWHEEL_ARCH}" == "x86_64" ] && echo | gcc -S -x c -v - 2>&1 | grep '
74
75
export EXTRA_CFLAGS=" -mtune=generic -march=x86-64"
75
76
fi
76
77
78
+ if [ " ${BASE_POLICY} " == " musllinux" ]; then
79
+ STACK_SIZE=0x200000
80
+ CFLAGS_EXTRA=" ${CFLAGS_EXTRA} -DTHREAD_STACK_SIZE=${STACK_SIZE} "
81
+ LDFLAGS_EXTRA=" ${LDFLAGS_EXTRA} -Wl,-z,stack-size=${STACK_SIZE} "
82
+ fi
83
+
77
84
# configure with hardening options only for the interpreter & stdlib C extensions
78
85
# do not change the default for user built extension (yet?)
79
86
./configure \
80
87
CFLAGS_NODIST=" ${MANYLINUX_CFLAGS} ${MANYLINUX_CPPFLAGS} ${CFLAGS_EXTRA} " \
81
- LDFLAGS_NODIST=" ${MANYLINUX_LDFLAGS} " \
88
+ LDFLAGS_NODIST=" ${MANYLINUX_LDFLAGS} ${LDFLAGS_EXTRA} " \
82
89
" --prefix=${PREFIX} " " ${CONFIGURE_ARGS[@]} " > /dev/null
83
90
make > /dev/null
84
91
make install > /dev/null
You can’t perform that action at this time.
0 commit comments