* fixed patch of r2313 (unit init code was not called anymore for

libraries)

git-svn-id: trunk@2334 -
This commit is contained in:
Jonas Maebe 2006-01-25 16:52:32 +00:00
parent 9cb97e5a99
commit 46c0fc3e7c

View File

@ -1703,11 +1703,11 @@ implementation
end;
{ call startup helpers from main program }
if (current_procinfo.procdef.proctypeoption=potype_proginit) and
not(current_module.islibrary) then
if (current_procinfo.procdef.proctypeoption=potype_proginit) then
begin
if (target_info.system = system_powerpc_darwin) or
(target_info.system = system_powerpc_macos) then
if ((target_info.system = system_powerpc_darwin) or
(target_info.system = system_powerpc_macos)) and
not(current_module.islibrary) then
begin
{ the parameters are already in the right registers }
cg.a_call_name(list,target_info.cprefix+'FPC_SYSTEMMAIN');