From c021fd0a21d9cfd1d3566c394363fff05dd79b7f Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 5 Nov 2020 22:38:10 +0800 Subject: [PATCH] improve libcurl --- packages/l/libcurl/xmake.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/l/libcurl/xmake.lua b/packages/l/libcurl/xmake.lua index ff4a74818..50f8cd771 100644 --- a/packages/l/libcurl/xmake.lua +++ b/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")