summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/meson.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index 29e4cad35..bfb981256 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -73,6 +73,13 @@ function _translate_flags(package, flags)
end
end
flags = flags_new
+ elseif package:is_plat("windows") then
+ for idx, flag in ipairs(flags) do
+ -- @see https://github.com/xmake-io/xmake/issues/4407
+ if flag:startswith("-libpath:") then
+ flags[idx] = flag:gsub("%-libpath:", "/libpath:")
+ end
+ end
end
return flags
end