diff options
| author | ruki <[email protected]> | 2023-10-18 19:08:11 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-18 19:08:11 -0500 |
| commit | ff24cac604e403bd930898da743e27bd9eca1d48 (patch) | |
| tree | 76a42f66bf1659d8957cf87e7ca9282d9ea54dbe | |
| parent | 327551e0f99c16a1b976bcc2384c504c9a1cd8f2 (diff) | |
| parent | 9b6b3bc91178b5b6758531c96d4c83083b08b7fe (diff) | |
Merge pull request #4298 from xmake-io/pkgconfig
fix parse links from pkgconfig #4292
| -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 |
