Skip to content

Commit

Permalink
chore: fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
aeweda committed Nov 20, 2024
1 parent c7dc282 commit 405f554
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/cross-compilation/openssl-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ main() {
wget https://www.openssl.org/source/openssl-$version.tar.gz
tar --strip-components=1 -xzvf openssl-$version.tar.gz

# Configure OpenSSL for arm64
# Use darwin64-x86_64-cc as base and override with arm64 architecture
# Configure OpenSSL for arm64, disabling assembly
./Configure \
--prefix="$install_dir" \
darwin64-x86_64-cc \
no-dso \
no-asm \
-fPIC \
${@:1}

# Modify the generated Makefile to use arm64
perl -pi -e 's/-arch x86_64/-arch arm64/g' Makefile

# Build using all available cores
make -j$(sysctl -n hw.ncpu)
KERNEL_BITS=64 make -j$(sysctl -n hw.ncpu)

# Install
sudo make install
Expand Down

0 comments on commit 405f554

Please sign in to comment.