-ldl only for linux

pull/2121/head
沈浪熊猫儿 2 years ago
parent 1ae9ee8740
commit 6ecc40453a
  1. 7
      packages/s/s7/xmake.lua

@ -34,6 +34,11 @@ package("s7")
]])
os.vrunv("s7", {file})
end
if is_plat("linux") then
local configs = {syslinks = {"dl"}}
else
local configs = {}
end
assert(package:check_csnippets([[
static s7_pointer old_add; /* the original "+" function for non-string cases */
static s7_pointer old_string_append; /* same, for "string-append" */
@ -48,5 +53,5 @@ package("s7")
return(s7_apply_function(sc, old_string_append, args));
return(s7_apply_function(sc, old_add, args));
}
]], {configs = {links = {"dl", "s7"}}, includes = "s7.h"}))
]], {configs = configs, includes = "s7.h"}))
end)

Loading…
Cancel
Save