mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 19:29:18 +02:00
* ar patch from Yury
git-svn-id: trunk@2638 -
This commit is contained in:
parent
3a1cac6f0d
commit
2c10e841b9
@ -619,14 +619,15 @@ begin
|
|||||||
{ Call AR }
|
{ Call AR }
|
||||||
smartpath:=current_module.outputpath^+FixPath(lower(current_module.modulename^)+target_info.smartext,false);
|
smartpath:=current_module.outputpath^+FixPath(lower(current_module.modulename^)+target_info.smartext,false);
|
||||||
SplitBinCmd(target_ar.arcmd,binstr,cmdstr);
|
SplitBinCmd(target_ar.arcmd,binstr,cmdstr);
|
||||||
|
binstr := FindUtil(utilsprefix + binstr);
|
||||||
Replace(cmdstr,'$LIB',maybequoted(current_module.staticlibfilename^));
|
Replace(cmdstr,'$LIB',maybequoted(current_module.staticlibfilename^));
|
||||||
{ create AR commands }
|
{ create AR commands }
|
||||||
success := true;
|
success := true;
|
||||||
nextcmd := cmdstr;
|
nextcmd := cmdstr;
|
||||||
current := TStringListItem(SmartLinkOFiles.First);
|
current := TStringListItem(SmartLinkOFiles.First);
|
||||||
repeat
|
repeat
|
||||||
Replace(nextcmd,'$FILES',GetNextFiles(240 - length(nextcmd), current));
|
Replace(nextcmd,'$FILES',GetNextFiles(240 - length(nextcmd) + 6 - length(binstr) - 1, current));
|
||||||
success:=DoExec(FindUtil(binstr),nextcmd,false,true);
|
success:=DoExec(binstr,nextcmd,false,true);
|
||||||
nextcmd := cmdstr;
|
nextcmd := cmdstr;
|
||||||
until (not assigned(current)) or (not success);
|
until (not assigned(current)) or (not success);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user