From 5383294ec4510e1980fb5f3b0f783b24e102e76b Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Tue, 12 Jul 2022 18:22:12 +0200 Subject: [PATCH] Add extsources to zlib for msys2 (#1338) --- packages/z/zlib/xmake.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/z/zlib/xmake.lua b/packages/z/zlib/xmake.lua index a4b492648..f45e6ff0e 100644 --- a/packages/z/zlib/xmake.lua +++ b/packages/z/zlib/xmake.lua @@ -9,7 +9,9 @@ package("zlib") add_versions("v1.2.11", "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff") add_versions("v1.2.12", "d8688496ea40fb61787500e863cc63c9afcbc524468cedeb478068924eb54932") - if is_plat("linux") then + if is_plat("mingw") and is_subhost("msys") then + add_extsources("pacman::zlib") + elseif is_plat("linux") then add_extsources("pacman::zlib", "apt::zlib1g-dev") elseif is_plat("macosx") then add_extsources("brew::zlib")