Fix include paths of pacman packages
@@ -41,6 +41,7 @@ function _find_package_from_list(list, name, pacman, opt)
for _, line in ipairs(list:split('\n', {plain = true})) do -- on msys cygpath should be used to convert local path to windows path
line = line:trim():split('%s+')[2]
if line:find("/include/", 1, true) and (line:endswith(".h") or line:endswith(".hpp")) then
+ if not line:startswith("/usr/include/") then
local hpath = line
if is_subhost("msys") and opt.plat == "mingw" then
hpath = os.iorunv(cygpath.program, {"--windows", line})
@@ -54,6 +55,7 @@ function _find_package_from_list(list, name, pacman, opt)
end
end
table.insert(result.includedirs, path.directory(hpath))
+ end
-- remove lib and .a, .dll.a and .so to have the links
elseif line:endswith(".dll.a") then -- only for mingw
local apath = os.iorunv(cygpath.program, {"--windows", line})
