From 7b24aca0df534d5c0b53a0e930145b6d53f548de Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Mon, 8 Jul 2024 01:15:17 +0800 Subject: [PATCH] add pthread on bsd --- packages/b/bvh/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/b/bvh/xmake.lua b/packages/b/bvh/xmake.lua index ee68636a6ed..74620aa0b28 100644 --- a/packages/b/bvh/xmake.lua +++ b/packages/b/bvh/xmake.lua @@ -11,6 +11,9 @@ package("bvh") add_configs("shared", {description = "Build shared library.", default = true, type = "boolean"}) add_configs("c_api", {description = "Builds the C API library wrapper", default = true, type = "boolean"}) + if is_plat("bsd") then + add_syslinks("pthread") + end on_load(function (package) if not package:config("c_api") then package:set("kind", "library", {headeronly = true})