Skip to content

Commit

Permalink
Fix openssl build for macos-universal
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Nov 28, 2023
1 parent f4eb3de commit f6d082e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bootstrap-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6d082e

Please sign in to comment.