Skip to content

Commit

Permalink
fix parse links from pkgconfig #4292
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Oct 17, 2023
1 parent af589ed commit 9b6b3bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xmake/modules/lib/detect/pkgconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ function libinfo(name, opt)
table.insert(result.linkdirs, linkdir)
end
elseif flag:startswith("-l") and #flag > 2 then
local link = flag:sub(3)
-- https://github.com/xmake-io/xmake/issues/4292
local link = flag:startswith("-l:") and flag:sub(4) or flag:sub(3)
result.links = result.links or {}
table.insert(result.links, link)
elseif flag:startswith("-") and #flag > 1 then
Expand Down

0 comments on commit 9b6b3bc

Please sign in to comment.