improve libcurl

pull/101/head^2
ruki 4 years ago
parent 25815a4113
commit c021fd0a21
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 8
      packages/l/libcurl/xmake.lua

@ -26,14 +26,20 @@ package("libcurl")
end)
on_install("macosx", "linux", "iphoneos", function (package)
local configs = {"--disable-silent-rules", "--disable-dependency-tracking", "--enable-shared=no"}
local configs = {"--disable-silent-rules", "--disable-dependency-tracking"}
if package:debug() then
table.insert(configs, "--enable-debug")
else
table.insert(configs, "--disable-debug")
end
if package:config("shared") then
table.insert(configs, "--enable-shared=yes")
else
table.insert(configs, "--enable-shared=no")
end
if is_plat("macosx") then
table.insert(configs, "--with-darwinssl")
table.insert(configs, "--without-libidn2")
end
table.insert(configs, "--without-ca-bundle")
table.insert(configs, "--without-ca-path")

Loading…
Cancel
Save