Browse Source

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

git-svn-id: trunk@17421 -
Jonas Maebe 14 years ago
parent
commit
9cd6a7ad85
1 changed files with 2 additions and 1 deletions
  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