summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Yufei <[email protected]>2022-03-25 15:00:00 +0800
committerChen Yufei <[email protected]>2022-03-25 20:30:28 +0800
commite22e43a152856d3899170e7fd627093ccb022ed3 (patch)
tree30bef962afce0cdc343a508f9af5edba6b4249c7
parent4e8df50aa3ad1daac237b87d88b5258433f8adaf (diff)
Improve pkg-config path fix pattern.
-rw-r--r--xmake/modules/private/action/require/impl/actions/install.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua
index 0b1296c69..9ed21d8b8 100644
--- a/xmake/modules/private/action/require/impl/actions/install.lua
+++ b/xmake/modules/private/action/require/impl/actions/install.lua
@@ -165,7 +165,7 @@ function _fix_paths_for_precompiled_package(package)
-- For pkg-config behavior for spaces in path, refer to
-- https://github.com/golang/go/issues/16455#issuecomment-255900404
file_pattern = {"lib/pkgconfig/**.pc", "share/pkgconfig/**.pc"},
- search_pattern = {"(prefix%s*=%s*(.-)\n)", "(%s-I%s*(%S+))", "(%s-L%s*(%S+))", '("(.-)")'},
+ search_pattern = {"(prefix%s*=%s*(.-)\n)", "(%-[I|L]%s*(%S+))", '("(.-)")'},
},
}
for _, pat in ipairs(patterns) do