Sfoglia il codice sorgente

* fixed ppc "make cycle" on Mac OS X/x86

git-svn-id: trunk@2812 -
Jonas Maebe 19 anni fa
parent
commit
a0b62a1bc7
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      compiler/systems/t_bsd.pas

+ 6 - 0
compiler/systems/t_bsd.pas

@@ -390,6 +390,12 @@ begin
   { Open link.res file }
   { Open link.res file }
   LinkRes:=TLinkRes.Create(outputexedir+Info.ResName);
   LinkRes:=TLinkRes.Create(outputexedir+Info.ResName);
 
 
+  case target_info.system of
+    system_powerpc_darwin:
+      LinkRes.Add('-arch ppc');
+    system_i386_darwin:
+      LinkRes.Add('-arch i386');
+  end;
   { Write path to search libraries }
   { Write path to search libraries }
   HPath:=TStringListItem(current_module.locallibrarysearchpath.First);
   HPath:=TStringListItem(current_module.locallibrarysearchpath.First);
   while assigned(HPath) do
   while assigned(HPath) do