summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarols <[email protected]>2020-04-06 22:07:15 +0800
committercarols <[email protected]>2020-04-06 22:07:15 +0800
commita88d4dc9322430377ce6ff8b0e2e0ff3fa1eda92 (patch)
tree235e6a0426d2c3d1f7fe45c93e232f659d56ba7a
parentfb427e840d5d193b958b607137b516662edd6446 (diff)
fix linux link suffix for qt
-rw-r--r--xmake/rules/qt/load.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/qt/load.lua b/xmake/rules/qt/load.lua
index cfc297cfa..06a33fede 100644
--- a/xmake/rules/qt/load.lua
+++ b/xmake/rules/qt/load.lua
@@ -30,7 +30,7 @@ function _link(framework, major)
debug_suffix = "d"
elseif is_plat("mingw") then
debug_suffix = "d"
- elseif is_plat("android") then
+ elseif is_plat("android") or is_plat("linux") then
debug_suffix = ""
end
framework = "Qt" .. major .. framework:sub(3) .. (is_mode("debug") and debug_suffix or "")
@@ -46,7 +46,7 @@ function _find_static_links_3rd(linkdirs, major, libpattern)
debug_suffix = "d"
elseif is_plat("mingw") then
debug_suffix = "d"
- elseif is_plat("android") then
+ elseif is_plat("android") or is_plat("linux") then
debug_suffix = ""
end
for _, linkdir in ipairs(linkdirs) do