mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 11:19:36 +02:00
* fixed patch of r2313 (unit init code was not called anymore for
libraries) git-svn-id: trunk@2334 -
This commit is contained in:
parent
9cb97e5a99
commit
46c0fc3e7c
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user