Browse Source

S7: fix link on_test (#2121)

* S7: fix link on_test

* -ldl only for linux

* Revert "-ldl only for linux"

This reverts commit 6ecc40453a1a7756958fda722152d69f56f1a995.

* Revert "S7: fix link on_test"

This reverts commit 1ae9ee87404578447243e6a3cf70b2b7f1c5d0d8.

* add syslinks for the s7 package

---------

Co-authored-by: 沈浪熊猫儿 <[email protected]>
Darcy Shen 2 years ago
parent
commit
0c4c7408b9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/s/s7/xmake.lua

+ 4 - 0
packages/s/s7/xmake.lua

@@ -17,6 +17,10 @@ package("s7")
         end
     end)
 
+    if is_plat("linux") then
+        add_syslinks("pthread", "dl")
+    end
+
     on_install("bsd", "cross", "cygwin", "linux", "macosx", "mingw", "msys", "wasm", "windows", function (package)
         os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
         local configs = {}