* pass "-syslibroot sysrootpath" to the darwin linker if -XRsysrootpath

is used (mantis #9953)

git-svn-id: trunk@8833 -
This commit is contained in:
Jonas Maebe 2007-10-17 19:25:06 +00:00
parent 091e563e77
commit 3155b650a1

View File

@ -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