mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 19:10:18 +02:00
* when creating pic code, every procedure must be declared being global
git-svn-id: trunk@1733 -
This commit is contained in:
parent
7ab72f43b3
commit
ca921976f6
@ -1173,7 +1173,12 @@ implementation
|
||||
if (not current_module.in_interface) then
|
||||
include(pdflags,pd_implemen);
|
||||
if (not current_module.is_unit) or
|
||||
maybe_smartlink_symbol then
|
||||
maybe_smartlink_symbol or
|
||||
{
|
||||
taking addresses of static procedures goes wrong
|
||||
if they aren't global when pic is used (FK)
|
||||
}
|
||||
(cs_create_pic in aktmoduleswitches) then
|
||||
include(pd.procoptions,po_global);
|
||||
pd.forwarddef:=false;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user