mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 17:33:32 +02:00
* always pass -arch parameter to linker when targetting Darwin, instead of
skipping this for dynamic libraries (not sure why that was done, but apparently not passing -arch triggers a bug in Xcode 4.2 Lion linker, mantis #21159) git-svn-id: trunk@20211 -
This commit is contained in:
parent
a2233d7991
commit
6a5cf6cf8d
@ -337,9 +337,6 @@ begin
|
|||||||
LinkRes.Add(sysrootpath);
|
LinkRes.Add(sysrootpath);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if (not isdll) or
|
|
||||||
(apptype=app_bundle) then
|
|
||||||
begin
|
|
||||||
if (target_info.system in systems_darwin) then
|
if (target_info.system in systems_darwin) then
|
||||||
begin
|
begin
|
||||||
LinkRes.Add('-arch');
|
LinkRes.Add('-arch');
|
||||||
@ -359,7 +356,6 @@ begin
|
|||||||
LinkRes.Add(lower(cputypestr[current_settings.cputype]));
|
LinkRes.Add(lower(cputypestr[current_settings.cputype]));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
|
||||||
{ Write path to search libraries }
|
{ Write path to search libraries }
|
||||||
HPath:=TCmdStrListItem(current_module.locallibrarysearchpath.First);
|
HPath:=TCmdStrListItem(current_module.locallibrarysearchpath.First);
|
||||||
while assigned(HPath) do
|
while assigned(HPath) do
|
||||||
|
Loading…
Reference in New Issue
Block a user