* always use ppc<targetcpu> instead of ppcross<targetcpu> on darwin,

because due to the mach-o executable format which can contain
    binaries for different architectures in a single file, different
    names for native and cross compilers are not used on Mac OS X
    (mantis #10067)

git-svn-id: trunk@10270 -
This commit is contained in:
Jonas Maebe 2008-02-10 14:42:49 +00:00
parent 4774f766e0
commit a497aec91d

View File

@ -214,7 +214,16 @@ program fpc;
else
error('Illegal processor type "'+processorstr+'"');
{$ifndef darwin}
ppcbin:='ppcross'+cpusuffix;
{$else not darwin}
{ the mach-o format supports "fat" binaries whereby }
{ a single executable contains machine code for }
{ several architectures -> it is counter-intuitive }
{ and non-standard to use different binary names }
{ for cross-compilers vs. native compilers }
ppcbin:='ppc'+cpusuffix;
{$endif not darwin}
end;
end
else if pos('-Xp',s)=1 then