diff --git a/packages/l/ls-hpack/xmake.lua b/packages/l/ls-hpack/xmake.lua index b9d804e5a..edfc8d18a 100644 --- a/packages/l/ls-hpack/xmake.lua +++ b/packages/l/ls-hpack/xmake.lua @@ -14,8 +14,6 @@ package("ls-hpack") io.writefile("xmake.lua", [[ add_rules("mode.debug", "mode.release") - set_symbols("none") - add_requires("xxhash") add_packages("xxhash") diff --git a/packages/l/lsquic/xmake.lua b/packages/l/lsquic/xmake.lua index 9ee82315d..a60896466 100644 --- a/packages/l/lsquic/xmake.lua +++ b/packages/l/lsquic/xmake.lua @@ -11,14 +11,20 @@ package("lsquic") add_configs("fiu", {description = "Use Fault Injection in Userspace (FIU)", default = false, type = "boolean"}) add_deps("cmake") - add_deps("zlib", "boringssl", "ls-qpack", "ls-hpack") + add_deps("zlib", "boringssl", "ls-qpack") add_includedirs("include/lsquic") - on_load("windows", function (package) - if not package:is_precompiled() then + on_load(function (package) + if package:is_plat("windows") and (not package:is_precompiled()) then package:add("deps", "strawberry-perl") end + + local configs = {} + if package:config("shared") then + configs.pic = true + end + package:add("deps", "ls-hpack", {configs = configs}) end) on_install("windows|!arm64", "linux", "macosx", function (package)