From 2adb7478b69f2f2ad428cdd17b8b754c6cf1c876 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 31 Aug 2023 10:27:13 +0800 Subject: [PATCH] update tbox (#2540) * update tbox * improve syslinks --- packages/t/tbox/xmake.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/t/tbox/xmake.lua b/packages/t/tbox/xmake.lua index 798e81e51..a10fd7c45 100644 --- a/packages/t/tbox/xmake.lua +++ b/packages/t/tbox/xmake.lua @@ -16,6 +16,7 @@ package("tbox") add_versions("v1.6.7", "7bedfc46036f0bb99d4d81b5a344fa8c24ada2372029b6cbe0c2c475469b2b70") add_versions("v1.6.9", "31db6cc51af7db76ad5b5da88356982b1e0f1e624c466c749646dd203b68adae") add_versions("v1.7.1", "236493a71ffc9d07111e906fc2630893b88d32c0a5fbb53cd94211f031bd65a1") + add_versions("v1.7.4", "c2eb29ad0cab15b851ab54cea6ae99555222a337a0f83340ae820b4a6e76a10c") add_configs("micro", {description = "Compile micro core library for the embed system.", default = false, type = "boolean"}) add_configs("float", {description = "Enable or disable the float type.", default = true, type = "boolean"}) @@ -31,12 +32,14 @@ package("tbox") add_syslinks("ws2_32", "user32", "kernel32") elseif is_plat("mingw") then add_syslinks("ws2_32", "pthread") - elseif not is_plat("android") then - add_syslinks("pthread") elseif is_plat("macosx", "iphoneos") then add_frameworks("Foundation", "CoreServices", "CoreFoundation") - elseif is_plat("linux", "bsd") then + elseif is_plat("linux") then add_syslinks("pthread", "m", "dl") + elseif is_plat("bsd") then + add_syslinks("execinfo", "pthread", "m", "dl") + elseif not is_plat("android") then + add_syslinks("pthread") end on_load(function (package)