summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 50fd9148b..8b7e26806 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1364,7 +1364,11 @@ function _instance:fetch_linkdeps()
end
if fetchinfo then
for name, values in pairs(fetchinfo) do
- fetchinfo[name] = table.unwrap(table.unique(table.wrap(values)))
+ if name == "links" or name == "syslinks" or name == "frameworks" then
+ fetchinfo[name] = table.unwrap(table.reverse_unique(table.wrap(values)))
+ else
+ fetchinfo[name] = table.unwrap(table.unique(table.wrap(values)))
+ end
end
end
return fetchinfo