From 0c4c7408b9ff4d7d437ea73b3b135746053b4df1 Mon Sep 17 00:00:00 2001 From: Darcy Shen Date: Sat, 27 May 2023 21:16:41 +0800 Subject: [PATCH] S7: fix link on_test (#2121) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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: 沈浪熊猫儿 --- packages/s/s7/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/s/s7/xmake.lua b/packages/s/s7/xmake.lua index 6445ea65a..e7992fa54 100644 --- a/packages/s/s7/xmake.lua +++ b/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 = {}