Browse Source

improve libcurl

ruki 3 years ago
parent
commit
8a967fb691
1 changed files with 5 additions and 0 deletions
  1. 5 0
      packages/l/libcurl/xmake.lua

+ 5 - 0
packages/l/libcurl/xmake.lua

@@ -53,11 +53,16 @@ package("libcurl")
                             zstd     = "zstd",
                             brotli   = "brotli",
                             libssh2  = "libssh2"}
+        local has_deps = false
         for name, dep in pairs(configdeps) do
             if package:config(name) then
                 package:add("deps", dep)
+                has_deps = true
             end
         end
+        if has_deps and package:is_plat("linux", "macosx") then
+            package:add("deps", "pkg-config")
+        end
     end)
 
     on_install("windows", "mingw@windows", function (package)