Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/tools/gcc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,10 @@
for _, fullpath in ipairs(dirs) do
local rpath = path.getrelative(cfg.buildtarget.directory, fullpath)
if table.contains(os.getSystemTags(cfg.system), "darwin") then
rpath = p.quoted(rpath) -- quote in case of spaces in path
rpath = "@loader_path/" .. rpath
elseif (cfg.system == p.LINUX) then
rpath = p.quoted(rpath) -- quote in case of spaces in path
rpath = iif(rpath == ".", "", "/" .. rpath)
rpath = "$$ORIGIN" .. rpath
end
Expand Down
Loading