Browse Source

Fix cpptrace linux build (#4394)

add linux dl syslink
x 1 year ago
parent
commit
6ea5919067
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/c/cpptrace/xmake.lua

+ 4 - 1
packages/c/cpptrace/xmake.lua

@@ -21,8 +21,11 @@ package("cpptrace")
 
 
     if is_plat("windows") then
     if is_plat("windows") then
         add_syslinks("dbghelp")
         add_syslinks("dbghelp")
-    elseif is_plat("linux", "macosx") then
+    elseif is_plat("macosx") then
         add_deps("libdwarf")
         add_deps("libdwarf")
+    elseif is_plat("linux") then
+        add_deps("libdwarf")
+        add_syslinks("dl")
     elseif is_plat("mingw") then
     elseif is_plat("mingw") then
         add_deps("libdwarf")
         add_deps("libdwarf")
         add_syslinks("dbghelp")
         add_syslinks("dbghelp")