summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-26 23:09:00 +0800
committerruki <[email protected]>2023-10-26 23:09:00 +0800
commitd867bea8765d546abdbad08a3e573a88a8553b1c (patch)
tree26879e620623fa0434e520d487cf3b3113c15dae
parentad3b99be539b8163fb457eff99711ee4680a2a73 (diff)
pass linkorders for packages
-rw-r--r--xmake/core/package/package.lua1
-rw-r--r--xmake/modules/package/manager/xmake/find_package.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index bbc303929..1ba408ff7 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1736,6 +1736,7 @@ function _instance:find_package(name, opt)
mode = self:mode(),
plat = self:plat(),
arch = self:arch(),
+ linkorders = self:get("linkorders"),
configs = table.join(self:configs(), opt.configs),
components = self:components_orderlist(),
components_extsources = opt.components_extsources,
diff --git a/xmake/modules/package/manager/xmake/find_package.lua b/xmake/modules/package/manager/xmake/find_package.lua
index 18d686409..0d5336fe4 100644
--- a/xmake/modules/package/manager/xmake/find_package.lua
+++ b/xmake/modules/package/manager/xmake/find_package.lua
@@ -353,5 +353,6 @@ function main(name, opt)
if not result and opt.packagedirs then
result = _find_package_from_packagedirs(name, opt)
end
+
return result
end