mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-26 05:29:32 +02:00
* patch by Alfred to use new linker names for Android NDK >=22, resolves #38987
git-svn-id: trunk@49498 -
This commit is contained in:
parent
97b2f7a5e1
commit
9d2e71ff69
@ -436,14 +436,16 @@ begin
|
|||||||
if IsSharedLib then
|
if IsSharedLib then
|
||||||
Replace(cmdstr,'$SONAME',ExtractFileName(outname));
|
Replace(cmdstr,'$SONAME',ExtractFileName(outname));
|
||||||
|
|
||||||
binstr:=FindUtil(utilsprefix+BinStr);
|
|
||||||
{ We should use BFD version of LD, since GOLD version does not support INSERT command in linker scripts }
|
{ We should use BFD version of LD, since GOLD version does not support INSERT command in linker scripts }
|
||||||
if binstr <> '' then begin
|
s:=utilsprefix+binstr+'.bfd';
|
||||||
{ Checking if ld.bfd exists }
|
if (source_info.exeext<>'') then
|
||||||
s:=ChangeFileExt(binstr, '.bfd' + source_info.exeext);
|
s:=s+source_info.exeext;
|
||||||
|
s:=FindUtil(s);
|
||||||
if FileExists(s, True) then
|
if FileExists(s, True) then
|
||||||
binstr:=s;
|
binstr:=s
|
||||||
end;
|
else
|
||||||
|
// fallback to ld for very old or custom binutils
|
||||||
|
binstr:=FindUtil(utilsprefix+BinStr);
|
||||||
|
|
||||||
success:=DoExec(binstr,CmdStr,true,false);
|
success:=DoExec(binstr,CmdStr,true,false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user