diff --git a/packages/c/cpuinfo/xmake.lua b/packages/c/cpuinfo/xmake.lua index 4e8e35570..095eea6fa 100644 --- a/packages/c/cpuinfo/xmake.lua +++ b/packages/c/cpuinfo/xmake.lua @@ -14,6 +14,9 @@ package("cpuinfo") end add_links("cpuinfo", "clog") + if is_plat("linux", "macosx", "bsd") then + add_syslinks("pthread") + end on_install("windows", "linux", "macosx", "bsd", "android", function (package) local configs = {"-DCPUINFO_BUILD_TOOLS=OFF",