On 1/2/25 7:17 PM, 'Mounir IDRASSI' via openssl-users wrote:
To create a fat binary on macOS, you need to use lipo command to combine both x64 and arm64 libraries that must be built separately as Viktor explained: lipo -create -output libcrypto.dylib libcrypto.dylib.x64 libcrypto.dylib.arm64 We have a script that automates this process. It fetches the OpenSSL tarball from GitHub, performs separate x64 and arm64 builds, invokes lipo, updates the install_name and handles code signing. The script is too long to include here so I’ve shared it as a GitHub gist: https://gist.github.com/idrassi/cf4ef1a81f9bb5b7d7b3e8382b942665 Take a look at the function lipo_dylib that calls lipo:
I already knew about lipo, but this is even better. Thanks! Regards, Nick -- You received this message because you are subscribed to the Google Groups "openssl-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe@xxxxxxxxxxx. To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/ce1f966f-5081-8d51-d5bf-02aaa07ef96d%40codesniffer.com.