From 3155b650a19fa824609c08a62e85ecfe93718a97 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Wed, 17 Oct 2007 19:25:06 +0000 Subject: [PATCH] * pass "-syslibroot sysrootpath" to the darwin linker if -XRsysrootpath is used (mantis #9953) git-svn-id: trunk@8833 - --- compiler/systems/t_bsd.pas | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/systems/t_bsd.pas b/compiler/systems/t_bsd.pas index fd4c68e676..32ee669113 100644 --- a/compiler/systems/t_bsd.pas +++ b/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