mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 16:50:25 +02:00
* check for empty objectfiles before writing INPUT()
git-svn-id: trunk@2727 -
This commit is contained in:
parent
dd03d5c997
commit
e176f81527
@ -950,29 +950,17 @@ begin
|
||||
|
||||
{ add objectfiles, start with prt0 always }
|
||||
{ profiling of shared libraries is currently not supported }
|
||||
LinkRes.Add('INPUT(');
|
||||
(*
|
||||
if isdll then
|
||||
LinkRes.AddFileName(MaybeQuoted(FindObjectFile('wdllprt0','',false)))
|
||||
else
|
||||
if (cs_profile in aktmoduleswitches) then
|
||||
LinkRes.AddFileName(MaybeQuoted(FindObjectFile('gprt0','',false)))
|
||||
else
|
||||
begin
|
||||
if linklibcygwin then
|
||||
LinkRes.AddFileName(MaybeQuoted(FindObjectFile('wcygprt0','',false)))
|
||||
else
|
||||
LinkRes.AddFileName(MaybeQuoted(FindObjectFile('wprt0','',false)));
|
||||
end;
|
||||
*)
|
||||
|
||||
while not ObjectFiles.Empty do
|
||||
begin
|
||||
s:=ObjectFiles.GetFirst;
|
||||
if s<>'' then
|
||||
LinkRes.AddFileName(MaybeQuoted(s));
|
||||
end;
|
||||
LinkRes.Add(')');
|
||||
if not ObjectFiles.Empty then
|
||||
begin
|
||||
LinkRes.Add('INPUT(');
|
||||
while not ObjectFiles.Empty do
|
||||
begin
|
||||
s:=ObjectFiles.GetFirst;
|
||||
if s<>'' then
|
||||
LinkRes.AddFileName(MaybeQuoted(s));
|
||||
end;
|
||||
LinkRes.Add(')');
|
||||
end;
|
||||
|
||||
{ Write staticlibraries }
|
||||
if (not StaticLibFiles.Empty) then
|
||||
|
Loading…
Reference in New Issue
Block a user