浏览代码

* correctly handle -XR (sysroot) paths with spaces under Darwin

git-svn-id: trunk@17421 -
Jonas Maebe 14 年之前
父节点
当前提交
9cd6a7ad85
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/systems/t_bsd.pas

+ 2 - 1
compiler/systems/t_bsd.pas

@@ -243,6 +243,7 @@ begin
             result:='/usr/lib/dylib1.o'
         end;
     end;
+  result:=maybequoted(result);
 end;    
 
 
@@ -320,7 +321,7 @@ begin
      (sysrootpath<>'') then
     begin
       LinkRes.Add('-syslibroot');
-      LinkRes.Add(sysrootpath);
+      LinkRes.Add(maybequoted(sysrootpath));
     end;
 
   if (not isdll) or