Skip to content

Commit

Permalink
Fix for macos arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
nabla-c0d3 committed Mar 24, 2024
1 parent a82e442 commit 32ea1eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ def _run_configure_command(
extra_args = "-no-asm -DZLIB_WINAPI" # *hate* zlib
# On Windows OpenSSL wants the full path to the lib file
final_zlib_path = zlib_lib_path
elif self.platform == SupportedPlatformEnum.OSX_ARM64:
extra_args = " -fPIC"
# For some reason on macOS arm64, the compiled openssl binary only works if we put the full path
# to the lib file, although it triggers an ld warning
final_zlib_path = zlib_lib_path
else:
extra_args = " -fPIC"
# On Unix OpenSSL wants the path to the folder where the lib is
Expand Down

0 comments on commit 32ea1eb

Please sign in to comment.