Parcourir la source

* fix from r9332 for shared libraries

git-svn-id: trunk@9797 -
Jonas Maebe il y a 17 ans
Parent
commit
56c18c5521
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      compiler/systems/t_bsd.pas

+ 5 - 2
compiler/systems/t_bsd.pas

@@ -713,8 +713,11 @@ begin
   if (success) and not(cs_link_nolink in current_settings.globalswitches) then
     begin
       DeleteFile(outputexedir+Info.ResName);
-//      DeleteFile(linkscript.fn);
-      linkscript.free
+      if LdSupportsNoResponseFile Then
+        begin
+          DeleteFile(linkscript.fn);
+          linkscript.free
+        end;
     end;     
 
   MakeSharedLibrary:=success;   { otherwise a recursive call to link method }