From e223cb3500a6ac0a8b9ee3058c22ba8dfa1b790c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 3 Feb 2022 21:24:42 -0800 Subject: [PATCH] build-system: correctly build OpenSSL on ARM Macs The OpenSSL configure script requires us to pass in the correct build spec. Signed-off-by: Dirk Hohndel --- scripts/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index c1be9a1cb..35eb7a3cd 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -349,7 +349,8 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then pushd openssl mkdir -p build cd build - ../Configure --prefix="$INSTALL_ROOT" --openssldir="$INSTALL_ROOT" "$OLDER_MAC" darwin64-x86_64-cc + if [ $(arch) == "arm64" ] ; then OS_ARCH=darwin64-arm64-cc ; else OS_ARCH=darwin64-x86_64-cc; fi + ../Configure --prefix="$INSTALL_ROOT" --openssldir="$INSTALL_ROOT" "$OLDER_MAC" $OS_ARCH make depend # all the tests fail because the assume that openssl is already installed. Odd? Still thinks work make -j4 -k