diff --git a/common/install_cpython.sh b/common/install_cpython.sh index 309e27cd3..a1716e641 100755 --- a/common/install_cpython.sh +++ b/common/install_cpython.sh @@ -22,14 +22,15 @@ function do_cpython_build { local prefix="/opt/_internal/cpython-${py_ver}" mkdir -p ${prefix}/lib - - # -Wformat added for https://bugs.python.org/issue17547 on Python 2.6 if [[ -z "${WITH_OPENSSL+x}" ]]; then - CFLAGS="-Wformat" ./configure --prefix=${prefix} --disable-shared > /dev/null + local openssl_flags="" else - CFLAGS="-Wformat" ./configure --prefix=${prefix} --with-openssl=${WITH_OPENSSL} --with-openssl-rpath=auto --disable-shared > /dev/null + local openssl_flags="--with-openssl=${WITH_OPENSSL} --with-openssl-rpath=auto" fi + # -Wformat added for https://bugs.python.org/issue17547 on Python 2.6 + CFLAGS="-Wformat" ./configure --prefix=${prefix} ${openssl_flags} --disable-shared > /dev/null + make -j40 > /dev/null make install > /dev/null