Browse Source

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

git-svn-id: trunk@46677 -
Jonas Maebe 5 years ago
parent
commit
beac71ed24
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/systems/t_darwin.pas

+ 2 - 1
compiler/systems/t_darwin.pas

@@ -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;