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
419 stars 125 forks source link

curl/libcurl-build.sh disable-shared #34

Closed MarcelKlammer closed 3 years ago

MarcelKlammer commented 4 years ago

Shouldn't it read:

./configure --disable-shared

instead of

./configure -disable-shared

in curl/libcurl-build.sh?

Docs: https://curl.haxx.se/docs/install.html

jasonacox commented 4 years ago

Great catch! Yes. It has been wrong for a long while. I think the only reason it still worked and produced static libraries is the --enable-static argument that is in there as well (forcing static libraries to be built). I have updated the libcurl-build.sh to use the double dash --disable-shared and have successfully tested the build and static libraries.