summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-29 22:53:08 +0800
committerruki <[email protected]>2022-12-29 22:53:08 +0800
commiteb26aaa8a8be3ba533f323d90438823fe6c89ef1 (patch)
tree1bf9e9459a971fd3c5785bd87eb4ada07fef3979
parent5c6c01df191f9f59a32d2a392a9c04c225e9e792 (diff)
add comments
-rw-r--r--xmake/modules/core/tools/gcc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index ba4723d86..5817b0269 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -288,6 +288,7 @@ function nf_rpathdir(self, dir)
return maps[name]
end))}
if self:is_plat("bsd") then
+ -- FreeBSD ld must have "-zorigin" with "-rpath". Otherwise, $ORIGIN is not translated and it is literal.
table.insert(flags, 1, "-Wl,-zorigin")
end
return flags