mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-05 00:28:25 +01:00
Add passing of -k option to linker for msdos and go32v2 targets
git-svn-id: trunk@24981 -
This commit is contained in:
parent
b78d6108fd
commit
277ae481b8
@ -189,7 +189,7 @@ procedure TExternalLinkerGo32v2.SetDefaultInfo;
|
||||
begin
|
||||
with Info do
|
||||
begin
|
||||
ExeCmd[1]:='ld $RES';
|
||||
ExeCmd[1]:='ld $OPT $RES';
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -389,6 +389,7 @@ begin
|
||||
{ Call linker }
|
||||
SplitBinCmd(Info.ExeCmd[1],binstr,cmdstr);
|
||||
Replace(cmdstr,'$RES','@'+maybequoted(outputexedir+Info.ResName));
|
||||
Replace(cmdstr,'$OPT',Info.ExtraOptions);
|
||||
success:=DoExec(FindUtil(utilsprefix+BinStr),cmdstr,true,false);
|
||||
|
||||
{ Remove ReponseFile }
|
||||
|
||||
@ -87,7 +87,7 @@ procedure TExternalLinkerMsDosTLink.SetDefaultInfo;
|
||||
begin
|
||||
with Info do
|
||||
begin
|
||||
ExeCmd[1]:='tlink $RES';
|
||||
ExeCmd[1]:='tlink $OPT $RES';
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -138,6 +138,7 @@ begin
|
||||
{ Call linker }
|
||||
SplitBinCmd(Info.ExeCmd[1],binstr,cmdstr);
|
||||
Replace(cmdstr,'$RES','@'+maybequoted(outputexedir+Info.ResName));
|
||||
Replace(cmdstr,'$OPT',Info.ExtraOptions);
|
||||
success:=DoExec(FindUtil(utilsprefix+BinStr),cmdstr,true,false);
|
||||
|
||||
{ Remove ReponseFile }
|
||||
@ -196,7 +197,7 @@ procedure TExternalLinkerMsDosALink.SetDefaultInfo;
|
||||
begin
|
||||
with Info do
|
||||
begin
|
||||
ExeCmd[1]:='alink $RES';
|
||||
ExeCmd[1]:='alink $OPT $RES';
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -215,6 +216,7 @@ begin
|
||||
{ Call linker }
|
||||
SplitBinCmd(Info.ExeCmd[1],binstr,cmdstr);
|
||||
Replace(cmdstr,'$RES','@'+maybequoted(outputexedir+Info.ResName));
|
||||
Replace(cmdstr,'$OPT',Info.ExtraOptions);
|
||||
success:=DoExec(FindUtil(utilsprefix+BinStr),cmdstr,true,false);
|
||||
|
||||
{ Remove ReponseFile }
|
||||
@ -294,7 +296,7 @@ procedure TExternalLinkerMsDosWLink.SetDefaultInfo;
|
||||
begin
|
||||
with Info do
|
||||
begin
|
||||
ExeCmd[1]:='wlink $RES';
|
||||
ExeCmd[1]:='wlink $OPT $RES';
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -313,6 +315,7 @@ begin
|
||||
{ Call linker }
|
||||
SplitBinCmd(Info.ExeCmd[1],binstr,cmdstr);
|
||||
Replace(cmdstr,'$RES','@'+maybequoted(outputexedir+Info.ResName));
|
||||
Replace(cmdstr,'$OPT',Info.ExtraOptions);
|
||||
success:=DoExec(FindUtil(utilsprefix+BinStr),cmdstr,true,false);
|
||||
|
||||
{ Remove ReponseFile }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user