Procházet zdrojové kódy

* link always excplicitly against libc on linux when using the dl unit so
the correct startup code is used

git-svn-id: trunk@34370 -

florian před 9 roky
rodič
revize
16ac523f50
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      rtl/unix/dl.pp

+ 4 - 4
rtl/unix/dl.pp

@@ -31,10 +31,10 @@ const
   {$define ELF} // ELF symbol versioning.
   {$define ELF} // ELF symbol versioning.
 {$endif}
 {$endif}
 
 
-{$if defined(linux) and (defined(cpuarm) or defined(cpupowerpc))}
-{ some linux targets seem to require this, if libc is not linked
-  the wrong start up code is used }
-{$linklib c}
+{$if defined(linux)}
+    { if libc is not linked explicitly, FPC might chose the wrong startup code, as
+      libdl depends on libc on linux, this does not hurt }
+    {$linklib c}
 {$endif}
 {$endif}
 
 
 {$ifdef aix}
 {$ifdef aix}