* fix deleting the linksyms file after successful linking (mantis #37636)

git-svn-id: trunk@46677 -
This commit is contained in:
Jonas Maebe 2020-08-24 20:21:10 +00:00
parent 3208929e17
commit beac71ed24

View File

@ -670,6 +670,7 @@ implementation
extdbgcmdstr:=maybequoted(current_module.sharedlibfilename);
end;
LinkSymsFileName:='';
if not texportlibunix(exportlib).exportedsymnames.empty then
begin
LinkSymsFileName:=UniqueName('linksyms')+'.fpc';
@ -721,7 +722,7 @@ implementation
DeleteFile(ordersymfile);
DeleteFile(linkscript.fn);
linkscript.free;
if not texportlibunix(exportlib).exportedsymnames.empty then
if LinkSymsFileName<>'' then
DeleteFile(outputexedir+LinkSymsFileName);
DeleteFile(outputexedir+LinkFilesFileName);
end;