jasonacox / Build-OpenSSL-cURL

Scripts to build OpenSSL, HTTP/2 (nghttp2) and cURL (libcurl) for MacOS, iOS and tvOS devices (x86_64, armv7, armv7s, arm64, arm64e). Now Supporting Apple Silicon, OpenSSL 3.0.x with TLS 1.3 and Mac Catalyst builds.
MIT License
432 stars 132 forks source link

Reconfigure build for macOs ARM Applications #56

Open lah64 opened 2 years ago

lah64 commented 2 years ago

Hello, I think it's male sense add to build curl this flags:

This is necessary for desktop applications because the new architecture [ARM64] does not support these things...

--without-libidn2 --disable-ldap --without-zlib

jasonacox commented 2 years ago

Hi @SKyzZz are you getting an error for builds on this architecture?

ghost commented 2 years ago

@jasonacox jasonacox just looks good when I compile but when I compile code I got:

unresolved external symbol c++ and etc...

  1. Ldap
  2. Inflare
  3. ZlibVersion
jasonacox commented 2 years ago

Thanks! I could see removing the first two, but you likely want zlib to handle compressed http payloads. I am not getting the symbol errors. I import the frameworks this way into xcode:

image

Are you building your desktop app via xcode IDE or command line?

lah64 commented 2 years ago

Are you building your desktop app via xcode IDE or command line?

xcode IDE + I use lib.a format

jasonacox commented 1 year ago

Added --without-libidn2 in the current build.