Browse Source

* pass "-syslibroot sysrootpath" to the darwin linker if -XRsysrootpath
is used (mantis #9953)

git-svn-id: trunk@8833 -

Jonas Maebe 18 years ago
parent
commit
3155b650a1
1 changed files with 7 additions and 0 deletions
  1. 7 0
      compiler/systems/t_bsd.pas

+ 7 - 0
compiler/systems/t_bsd.pas

@@ -375,6 +375,13 @@ begin
   { Open link.res file }
   LinkRes:=TLinkRes.Create(outputexedir+Info.ResName);
 
+  if (target_info.system in systems_darwin) and
+     (sysrootpath<>'') then
+    begin
+      LinkRes.Add('-syslibroot');
+      LinkRes.Add(sysrootpath);
+    end;
+
   if (not isdll) or
      (apptype=app_bundle) then
     begin