Bladeren bron

* fixed dyn. linker handling

florian 21 jaren geleden
bovenliggende
commit
7e778c5d78
1 gewijzigde bestanden met toevoegingen van 6 en 1 verwijderingen
  1. 6 1
      compiler/systems/t_linux.pas

+ 6 - 1
compiler/systems/t_linux.pas

@@ -407,8 +407,10 @@ begin
      { when we have -static for the linker the we also need libgcc }
      { when we have -static for the linker the we also need libgcc }
      if (cs_link_staticflag in aktglobalswitches) then
      if (cs_link_staticflag in aktglobalswitches) then
       LinkRes.Add('-lgcc');
       LinkRes.Add('-lgcc');
+     { the dyn. linker should be passed only with -dynamic-linker to ld
      if linkdynamic and (Info.DynamicLinker<>'') then
      if linkdynamic and (Info.DynamicLinker<>'') then
       LinkRes.AddFileName(Info.DynamicLinker);
       LinkRes.AddFileName(Info.DynamicLinker);
+     }
      LinkRes.Add(')');
      LinkRes.Add(')');
    end;
    end;
 
 
@@ -590,7 +592,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.27  2004-11-05 11:04:23  florian
+  Revision 1.28  2004-11-05 12:27:27  florian
+    * fixed dyn. linker handling
+
+  Revision 1.27  2004/11/05 11:04:23  florian
     * path of dyn. linker on arm for linux fixed
     * path of dyn. linker on arm for linux fixed
 
 
   Revision 1.26  2004/10/24 13:36:26  peter
   Revision 1.26  2004/10/24 13:36:26  peter