+ search crt* files also in /usr/lib/x86_64-linux-gnu, multiarch supporting distros require this

git-svn-id: trunk@26158 -
This commit is contained in:
florian 2013-12-01 15:39:05 +00:00
parent 409e176ded
commit c357212b45

View File

@ -135,7 +135,7 @@ begin
{$endif x86_64}
{$ifdef arm}
{ some newver Debian have the crt*.o files at uncommon locations,
{ some newer Debian have the crt*.o files at uncommon locations,
for other arm flavours, this cannot hurt }
if not Dontlinkstdlibpath Then
{$ifdef FPC_ARMHF}
@ -145,6 +145,9 @@ begin
LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/arm-linux-gnueabi',true);
{$endif}
{$endif arm}
{$ifdef x86_64}
LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/x86_64-linux-gnu',true);
{$endif x86_64}
end;
{$ifdef m68k}