improve xmake.lua

This commit is contained in:
ruki
2020-05-11 22:45:17 +08:00
parent f622aa3e67
commit 0c4666c24f

View File

@@ -105,7 +105,7 @@ target("ltui")
-- add lua and do not link it on linux and macos -- add lua and do not link it on linux and macos
local lualinks = nil local lualinks = nil
if is_plat("macosx") then if is_plat("macosx", "linux", "bsd") then
lualinks = {} lualinks = {}
end end
if has_config("luajit") then if has_config("luajit") then
@@ -126,6 +126,8 @@ target("ltui")
-- dynamic lookup liblua symbols -- dynamic lookup liblua symbols
if is_plat("macosx") then if is_plat("macosx") then
add_shflags("-undefined dynamic_lookup") add_shflags("-undefined dynamic_lookup")
elseif is_plat("linux", "bsd") then
add_shflags("-undefined suppress")
end end
-- add projects -- add projects