fix libcurl for macosx

pull/18/head
ruki 6 years ago
parent 41ce145a94
commit 6c3025fada
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 12
      packages/l/libcurl/xmake.lua

@ -34,7 +34,17 @@ package("libcurl")
table.insert(configs, "--disable-debug")
end
if is_plat("macosx") then
table.insert(configs, "--with-darwinssl")
local with_darwinssl = false
local xcode_sdkver = get_config("xcode_sdkver")
if xcode_sdkver then
-- fix undefined symbols: _SSLCopyALPNProtocols, _SSLSetALPNProtocols
with_darwinssl = import("core.base.semver").compare(xcode_sdkver, "9.4.1") > 0
end
if with_darwinssl then
table.insert(configs, "--with-darwinssl")
else
table.insert(configs, "--without-darwinssl")
end
end
table.insert(configs, "--without-ca-bundle")
table.insert(configs, "--without-ca-path")

Loading…
Cancel
Save