From ab3dff12a7b10c20e7c4b2478095de0351e9fbd4 Mon Sep 17 00:00:00 2001 From: Samuel Ayala Date: Sun, 4 Feb 2024 20:47:17 -0500 Subject: add ldflags to export attributes loop --- xmake/rules/utils/inherit_links/inherit_links.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/utils/inherit_links/inherit_links.lua b/xmake/rules/utils/inherit_links/inherit_links.lua index 0c643fdd2..4a2c0b969 100644 --- a/xmake/rules/utils/inherit_links/inherit_links.lua +++ b/xmake/rules/utils/inherit_links/inherit_links.lua @@ -86,7 +86,7 @@ function main(target) -- if target:data("inherit.links.exportlinks") ~= false then if targetkind == "static" then - for _, name in ipairs({"rpathdirs", "frameworkdirs", "frameworks", "linkdirs", "links", "syslinks"}) do + for _, name in ipairs({"rpathdirs", "frameworkdirs", "frameworks", "linkdirs", "links", "syslinks", "ldflags"}) do local values = _get_values_from_target(target, name) if values and #values > 0 then target:add(name, values, {public = true}) -- cgit v1.3.1