소스 검색

* 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 9 년 전
부모
커밋
16ac523f50
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      rtl/unix/dl.pp

+ 4 - 4
rtl/unix/dl.pp

@@ -31,10 +31,10 @@ const
   {$define ELF} // ELF symbol versioning.
 {$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}
 
 {$ifdef aix}