From 55f4c2debc89c6438e253e999c39fa6b0f799e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Mon, 5 Sep 2022 14:04:50 +0200 Subject: [PATCH] libzip: Add Advapi32 syslink (#1462) * libzip: Add Advapi32 syslink * libzip: Links advapi32 on MinGW too --- packages/l/libzip/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/l/libzip/xmake.lua b/packages/l/libzip/xmake.lua index c49a2d0c1..8f699f774 100644 --- a/packages/l/libzip/xmake.lua +++ b/packages/l/libzip/xmake.lua @@ -19,6 +19,10 @@ package("libzip") add_configs(config, {description = "Enable " .. config .. " support.", default = false, type = "boolean"}) end + if is_plat("windows", "mingw") then + add_syslinks("Advapi32") + end + on_load("windows", "macosx", "linux", function (package) for config, dep in pairs(configdeps) do if package:config(config) then