Browse Source

* fixed dynamic linking of programs that only link with libc after r13584

git-svn-id: trunk@13587 -
Jonas Maebe 16 years ago
parent
commit
84cefb5eba
1 changed files with 3 additions and 1 deletions
  1. 3 1
      compiler/systems/t_linux.pas

+ 3 - 1
compiler/systems/t_linux.pas

@@ -455,7 +455,9 @@ begin
                  end;
                  end;
               end;
               end;
              Add(')');
              Add(')');
-           end;
+           end
+         else
+           linklibc:=true;
          if (cs_link_staticflag in current_settings.globalswitches) or
          if (cs_link_staticflag in current_settings.globalswitches) or
             (linklibc and not reorder) then
             (linklibc and not reorder) then
            begin
            begin