diff --git a/cpython-unix/build-cpython.sh b/cpython-unix/build-cpython.sh index dbb6cae4..22f56a6e 100755 --- a/cpython-unix/build-cpython.sh +++ b/cpython-unix/build-cpython.sh @@ -218,6 +218,27 @@ EOF sed s/__APPLE__/USE_LIBEDIT/g Modules/readline-libedit.c > tmp mv tmp Modules/readline-libedit.c +# Modules/_hashopenssl.c redefines some libcrypto symbols on Python 3.9 and +# this makes the linker unhappy. So rename the symbols to work around. +# https://bugs.python.org/issue41949. +if [ "${PYTHON_MAJMIN_VERSION}" = "3.9" ]; then + patch -p1 <