Explorar o código

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

git-svn-id: trunk@2313 -
Jonas Maebe %!s(int64=19) %!d(string=hai) anos
pai
achega
2ef0f67ebb
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/ncgutil.pas

+ 2 - 1
compiler/ncgutil.pas

@@ -1703,7 +1703,8 @@ implementation
           end;
 
         { 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
            if (target_info.system = system_powerpc_darwin) or
               (target_info.system = system_powerpc_macos) then