cocos2d / cocos2d-x-3rd-party-libs-src

Dependencies of cocos2d-x.
142 stars 169 forks source link

cannot compile curl on MacOS Mojave #171

Open Guy-kun opened 6 years ago

Guy-kun commented 6 years ago

Cloning the latest version and attempting to run ./build.sh -p=mac --libs=curl --arch=x86_64 --mode=release

Results in the error:

connect.c:1087:12: error: 'connectx' is only available on macOS 10.11 or newer [-Werror,-Wunguarded-availability]

Which seems to be related to a libcurl issue that has since been patched: https://github.com/curl/curl/issues/2080

I'm not well versed enough in how this build process works but if someone could possibly take a look as to what needs to be changed to use latest libcurl this will likely fix the issue.

Thanks!