Browse Source

* Fixed error introduced in r21732. For libraries, startup is always dllprt0.o, regardless of profiling/linking to libc. Mantis #22397.

git-svn-id: trunk@21824 -
sergei 13 years ago
parent
commit
2638bc01d9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/systems/t_linux.pas

+ 2 - 0
compiler/systems/t_linux.pas

@@ -305,6 +305,8 @@ begin
   sysinitunit:=defsinames[current_module.islibrary];
   sysinitunit:=defsinames[current_module.islibrary];
   prtobj:=defprtnames[current_module.islibrary];
   prtobj:=defprtnames[current_module.islibrary];
 
 
+  if current_module.islibrary then
+    exit;
   if cs_profile in current_settings.moduleswitches then
   if cs_profile in current_settings.moduleswitches then
     begin
     begin
       prtobj:=gprtnames[libctype];
       prtobj:=gprtnames[libctype];