Skip to content

Commit 30bb617

Browse files
committed
Escape spaces in rpath with quotes
1 parent 446ad5e commit 30bb617

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/gcc.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,10 @@
427427
for _, fullpath in ipairs(dirs) do
428428
local rpath = path.getrelative(cfg.buildtarget.directory, fullpath)
429429
if table.contains(os.getSystemTags(cfg.system), "darwin") then
430+
rpath = p.quoted(rpath) -- quote in case of spaces in path
430431
rpath = "@loader_path/" .. rpath
431432
elseif (cfg.system == p.LINUX) then
433+
rpath = p.quoted(rpath) -- quote in case of spaces in path
432434
rpath = iif(rpath == ".", "", "/" .. rpath)
433435
rpath = "$$ORIGIN" .. rpath
434436
end

0 commit comments

Comments
 (0)