|
@@ -431,8 +431,6 @@ unit pmodules;
|
|
{ only reassemble ? }
|
|
{ only reassemble ? }
|
|
if (current_module^.do_assemble) then
|
|
if (current_module^.do_assemble) then
|
|
OnlyAsm;
|
|
OnlyAsm;
|
|
- { add the files for the linker }
|
|
|
|
- Linker.AddModuleFiles(current_module);
|
|
|
|
end;
|
|
end;
|
|
if assigned(current_module^.ppufile) then
|
|
if assigned(current_module^.ppufile) then
|
|
begin
|
|
begin
|
|
@@ -1191,15 +1189,13 @@ unit pmodules;
|
|
{ assemble }
|
|
{ assemble }
|
|
create_objectfile;
|
|
create_objectfile;
|
|
end;
|
|
end;
|
|
-
|
|
|
|
- { add the files for the linker from current_module }
|
|
|
|
- Linker.AddModuleFiles(current_module);
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure proc_program(islibrary : boolean);
|
|
procedure proc_program(islibrary : boolean);
|
|
var
|
|
var
|
|
st : psymtable;
|
|
st : psymtable;
|
|
|
|
+ hp : pmodule;
|
|
names : Tstringcontainer;
|
|
names : Tstringcontainer;
|
|
begin
|
|
begin
|
|
DLLsource:=islibrary;
|
|
DLLsource:=islibrary;
|
|
@@ -1341,14 +1337,20 @@ unit pmodules;
|
|
{ assemble and link }
|
|
{ assemble and link }
|
|
create_objectfile;
|
|
create_objectfile;
|
|
|
|
|
|
- { add the files for the linker from current_module }
|
|
|
|
- Linker.AddModuleFiles(current_module);
|
|
|
|
-
|
|
|
|
{ create the executable when we are at level 1 }
|
|
{ create the executable when we are at level 1 }
|
|
if (compile_level=1) then
|
|
if (compile_level=1) then
|
|
begin
|
|
begin
|
|
|
|
+ { insert all .o files from all loaded units }
|
|
|
|
+ hp:=pmodule(loaded_units.first);
|
|
|
|
+ while assigned(hp) do
|
|
|
|
+ begin
|
|
|
|
+ Linker.AddModuleFiles(hp);
|
|
|
|
+ hp:=pmodule(hp^.next);
|
|
|
|
+ end;
|
|
|
|
+ { write .def file }
|
|
if (cs_link_deffile in aktglobalswitches) then
|
|
if (cs_link_deffile in aktglobalswitches) then
|
|
deffile.writefile;
|
|
deffile.writefile;
|
|
|
|
+ { finally we can create a executable }
|
|
if (not current_module^.is_unit) then
|
|
if (not current_module^.is_unit) then
|
|
Linker.MakeExecutable;
|
|
Linker.MakeExecutable;
|
|
end;
|
|
end;
|
|
@@ -1357,7 +1359,10 @@ unit pmodules;
|
|
end.
|
|
end.
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.115 1999-04-26 18:29:58 peter
|
|
|
|
|
|
+ Revision 1.116 1999-04-26 23:22:42 peter
|
|
|
|
+ * fixed double .o file insertion
|
|
|
|
+
|
|
|
|
+ Revision 1.115 1999/04/26 18:29:58 peter
|
|
* farpointerdef moved into pointerdef.is_far
|
|
* farpointerdef moved into pointerdef.is_far
|
|
|
|
|
|
Revision 1.114 1999/04/26 13:31:39 peter
|
|
Revision 1.114 1999/04/26 13:31:39 peter
|