Explorar o código

* fix searching of (g)ar for the arfinishcmd

git-svn-id: trunk@5367 -
Jonas Maebe %!s(int64=19) %!d(string=hai) anos
pai
achega
4ba88ce33e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      compiler/link.pas

+ 1 - 0
compiler/link.pas

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