소스 검색

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