Browse Source

* don't call parameter setup code for library init code (darwin/mac os)

git-svn-id: trunk@2313 -
Jonas Maebe 19 years ago
parent
commit
2ef0f67ebb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/ncgutil.pas

+ 2 - 1
compiler/ncgutil.pas

@@ -1703,7 +1703,8 @@ implementation
           end;
           end;
 
 
         { call startup helpers from main program }
         { call startup helpers from main program }
-        if (current_procinfo.procdef.proctypeoption=potype_proginit) then
+        if (current_procinfo.procdef.proctypeoption=potype_proginit) and
+           not(current_module.islibrary) then
          begin
          begin
            if (target_info.system = system_powerpc_darwin) or
            if (target_info.system = system_powerpc_darwin) or
               (target_info.system = system_powerpc_macos) then
               (target_info.system = system_powerpc_macos) then