From eb26aaa8a8be3ba533f323d90438823fe6c89ef1 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 29 Dec 2022 22:53:08 +0800 Subject: add comments --- xmake/modules/core/tools/gcc.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.3.1