From f6d082ee47e9bc7bb2ff0de3cc355489d0f7ae08 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 28 Nov 2023 01:23:37 +0100 Subject: [PATCH] Fix openssl build for macos-universal Signed-off-by: falkTX --- bootstrap-python.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap-python.sh b/bootstrap-python.sh index bd6c4c0..21fef09 100755 --- a/bootstrap-python.sh +++ b/bootstrap-python.sh @@ -109,8 +109,13 @@ function build_conf_openssl() { OPENSSL_URL="https://www.openssl.org/source" OPENSSL_VERSION="1.1.1w" +OPENSSL_EXTRAFLAGS="no-shared no-hw threads no-zlib no-capieng no-pinshared" +if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then + OPENSSL_EXTRAFLAGS+=" no-asm" +fi + download openssl "${OPENSSL_VERSION}" "${OPENSSL_URL}" -build_conf_openssl openssl "${OPENSSL_VERSION}" "no-shared no-hw threads no-zlib no-capieng no-pinshared" +build_conf_openssl openssl "${OPENSSL_VERSION}" "${OPENSSL_EXTRAFLAGS}" # --------------------------------------------------------------------------------------------------------------------- # custom function for python