Parcourir la source

* fix for Mantis #36706: only link a library against the dynamic loader if we're not linking against the C library anyway

Note: I did not yet find a case where we *do* need to link a library against the loader; this will have to be investigated further, but for 3.2.0 this is safest

git-svn-id: trunk@44256 -
svenbarth il y a 5 ans
Parent
commit
9c088bda6a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      compiler/systems/t_linux.pas

+ 1 - 1
compiler/systems/t_linux.pas

@@ -576,7 +576,7 @@ begin
 
       { Write sharedlibraries like -l<lib>, also add the needed dynamic linker
         here to be sure that it gets linked this is needed for glibc2 systems (PFV) }
-      if (isdll) then
+      if isdll and not linklibc then
        begin
          Add('INPUT(');
          Add(sysrootpath+info.DynamicLinker);