diff options
| author | ruki <[email protected]> | 2023-10-18 00:47:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-18 00:47:18 +0800 |
| commit | 9b6b3bc91178b5b6758531c96d4c83083b08b7fe (patch) | |
| tree | e26020eca4db1c7c8bae3acb13a09d0f8d4d8de4 /xmake/modules/lib/detect/pkgconfig.lua | |
| parent | af589ed7e8bbbabbe1fc33156d1161b319fd85b5 (diff) | |
fix parse links from pkgconfig #4292
Diffstat (limited to 'xmake/modules/lib/detect/pkgconfig.lua')
| -rw-r--r-- | xmake/modules/lib/detect/pkgconfig.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/lib/detect/pkgconfig.lua b/xmake/modules/lib/detect/pkgconfig.lua index f58477f04..c86154e6e 100644 --- a/xmake/modules/lib/detect/pkgconfig.lua +++ b/xmake/modules/lib/detect/pkgconfig.lua @@ -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 |
