git-svn-id: trunk@17631 -
@@ -1667,7 +1667,7 @@ begin
Internalerror(200109191);
make_global := False;
- if (not current_module.is_unit) or
+ if (not current_module.is_unit) or create_smartlink or
(procdef.owner.defowner.owner.symtabletype = globalsymtable) then
make_global := True;
@@ -1363,7 +1363,7 @@ implementation
make_global:=false;
(procdef.owner.defowner.owner.symtabletype=globalsymtable) then
make_global:=true;
@@ -161,7 +161,7 @@ unit cgcpu;