Browse Source

* fix searching of (g)ar for the arfinishcmd

git-svn-id: trunk@5367 -
Jonas Maebe 19 years ago
parent
commit
4ba88ce33e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/link.pas

+ 1 - 0
compiler/link.pas

@@ -721,6 +721,7 @@ Implementation
         if (target_ar.arfinishcmd <> '') then
         if (target_ar.arfinishcmd <> '') then
           begin
           begin
             SplitBinCmd(target_ar.arfinishcmd,binstr,cmdstr);
             SplitBinCmd(target_ar.arfinishcmd,binstr,cmdstr);
+            binstr := FindUtil(utilsprefix + binstr);
             Replace(cmdstr,'$LIB',maybequoted(current_module.staticlibfilename^));
             Replace(cmdstr,'$LIB',maybequoted(current_module.staticlibfilename^));
             success:=DoExec(binstr,cmdstr,false,true);
             success:=DoExec(binstr,cmdstr,false,true);
           end;
           end;