Browse Source

s7: add_syslinks m (#2293)

Darcy Shen 2 years ago
parent
commit
50fc01bf14
2 changed files with 2 additions and 2 deletions
  1. 1 1
      packages/s/s7/port/xmake.lua
  2. 1 1
      packages/s/s7/xmake.lua

+ 1 - 1
packages/s/s7/port/xmake.lua

@@ -40,6 +40,6 @@ target("s7") do
         add_ldflags("-static", "-static-libgcc", {force = true})
     end
     if is_plat("linux") then
-        add_syslinks("pthread", "dl")
+        add_syslinks("pthread", "dl", "m")
     end
 end

+ 1 - 1
packages/s/s7/xmake.lua

@@ -18,7 +18,7 @@ package("s7")
     end)
 
     if is_plat("linux") then
-        add_syslinks("pthread", "dl")
+        add_syslinks("pthread", "dl", "m")
     end
 
     on_install("bsd", "cross", "cygwin", "linux", "macosx", "mingw", "msys", "wasm", "windows", function (package)