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

git-svn-id: trunk@2313 -
This commit is contained in:
Jonas Maebe 2006-01-20 22:00:15 +00:00
parent 10153d061d
commit 2ef0f67ebb

View File

@ -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