passepartoutvpn / openssl-apple

A script for compiling OpenSSL for Apple Devices.
Apache License 2.0
139 stars 65 forks source link

Fix OpenSSL 3 build issues #52

Closed hoppjan closed 7 months ago

hoppjan commented 10 months ago

I tried to get this project to build with OpenSSL 3.0.10 (on my M1 MacBook Air).

  1. I fixed the issue in get_openssl_version as described in this note to yourself. However, I remain uncertain whether this resolves all scenarios or represents an optimal solution.
  2. As described by the users in #42, I also removed the asm(...) bits in the config/20-all-platforms.conf. I have no idea what that does other than fix the build issue or if it should be kept for legacy 1.1.1 builds (OpenSSL 1.1.1 went End-of-Life this month!).

After those changes I was finally able to build OpenSSL 3.0.10 for all iOS targets and it seems to work for my little use case. I invite everyone to try the other targets (macOS, Catalyst, watchOS & tvOS) since my knowledge doesn't even cover iOS, much less all these other devices. Their parts in the config have been removed but all of this is far outside my area of expertise. Also: OpenSSL 1.1.1w seems to build fine with all of these changes.

I hope that at least some of this can be of use in this project ^^

Closes #42

keeshux commented 10 months ago

Thanks @hoppjan for your great contribution!