diff options
| author | f11st <[email protected]> | 2024-06-07 01:34:52 +0800 |
|---|---|---|
| committer | f11st <[email protected]> | 2024-06-07 01:34:52 +0800 |
| commit | 66980668db321501ed9d08599d7747840b2f04bd (patch) | |
| tree | 12ce037aa16ea5f13f75fd13f3eb7c078c28d4d1 | |
| parent | c1a1cd33022614e10e08dd3a52a9cf3e24bd5e32 (diff) | |
Fix syslinks error using qt static lib in mingw
| -rw-r--r-- | xmake/rules/qt/load.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/qt/load.lua b/xmake/rules/qt/load.lua index 070ae2c0d..8741d1e14 100644 --- a/xmake/rules/qt/load.lua +++ b/xmake/rules/qt/load.lua @@ -158,6 +158,9 @@ function _add_qmakeprllibs(target, prlfile, qtlibdir) target:add("linkdirs", libdir) else local libstr = string.gsub(lib, "%$%$%[QT_INSTALL_LIBS%]", qtlibdir) + if libstr:startswith("-l") then + libstr = lib:sub(3) + end target:add("syslinks", libstr) end end |
