From 3ea4568ece5eeeed93b14e4d7108efaa6f9c1cf7 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Aug 2024 10:30:26 +0800 Subject: [PATCH] fix boost (#4868) --- packages/b/boost/xmake.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/b/boost/xmake.lua b/packages/b/boost/xmake.lua index 4e6c08d32..775122533 100644 --- a/packages/b/boost/xmake.lua +++ b/packages/b/boost/xmake.lua @@ -86,6 +86,7 @@ package("boost") add_configs("lzma", {description = "enable lzma for iostreams", default = false, type = "boolean"}) on_load(function (package) + local function get_linkname(package, libname) local linkname if package:is_plat("windows") then @@ -145,13 +146,11 @@ package("boost") end package:add("deps", "python " .. package:config("pyver") .. ".x", {configs = {headeronly = true}}) end - if package:is_plat("linux") then - if package:config("zstd") then - package:add("deps", "zstd") - end - if package:config("lzma") then - package:add("deps", "xz") - end + if package:config("zstd") then + package:add("deps", "zstd") + end + if package:config("lzma") then + package:add("deps", "xz") end if package:is_plat("windows") and package:version():le("1.85.0") then