summaryrefslogtreecommitdiff
path: root/xmake/modules/package/manager/system
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-16 22:44:11 +0800
committerruki <[email protected]>2021-09-16 22:44:11 +0800
commitb0de078312f7c87f54c9229b913992a495a3b2ed (patch)
treea00f5709f96e3e278315dd41e2ba90b5ad657d9f /xmake/modules/package/manager/system
parent8f3d4ec9654ba58a5a098213c2d28c01ecd1649c (diff)
improve find_library
Diffstat (limited to 'xmake/modules/package/manager/system')
-rw-r--r--xmake/modules/package/manager/system/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/system/find_package.lua b/xmake/modules/package/manager/system/find_package.lua
index 9bb04566d..692241309 100644
--- a/xmake/modules/package/manager/system/find_package.lua
+++ b/xmake/modules/package/manager/system/find_package.lua
@@ -60,7 +60,7 @@ function _find_package_from_unixdirs(name, links, opt)
-- find library
local result = nil
for _, link in ipairs(links) do
- local libinfo = find_library(link, linkdirs)
+ local libinfo = find_library(link, linkdirs, {plat = opt.plat})
if libinfo then
result = result or {}
result.links = table.join(result.links or {}, libinfo.link)