瀏覽代碼

Fix s7 link error on Linux (#2119)

Co-authored-by: 沈浪熊猫儿 <[email protected]>
Darcy Shen 2 年之前
父節點
當前提交
01cea90aca
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/s/s7/port/xmake.lua

+ 3 - 0
packages/s/s7/port/xmake.lua

@@ -39,4 +39,7 @@ target("s7") do
     if not is_plat("macosx") then
         add_ldflags("-static", "-static-libgcc", {force = true})
     end
+    if is_plat("linux") then
+        add_syslinks("pthread", "dl")
+    end
 end