From: Pascal Packaging Team Date: Sat, 10 Jun 2017 17:13:48 +0000 (+0100) Subject: fix_FTBFS_on_linux_not_amd64 X-Git-Tag: archive/raspbian/3.0.0+dfsg-11+rpi1+deb9u1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=05131ac335d21a491d14341984f9172153c2f044;p=fpc.git fix_FTBFS_on_linux_not_amd64 Gbp-Pq: Name fix_FTBFS_on_linux_not_amd64.patch --- diff --git a/fpcsrc/compiler/systems/t_linux.pas b/fpcsrc/compiler/systems/t_linux.pas index 67a11576..250f57f8 100644 --- a/fpcsrc/compiler/systems/t_linux.pas +++ b/fpcsrc/compiler/systems/t_linux.pas @@ -145,10 +145,26 @@ begin LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/arm-linux-gnueabi',true); {$endif} {$endif arm} +{$ifdef i386} + if not Dontlinkstdlibpath Then + LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/i386-linux-gnu',true); +{$endif i386} {$ifdef x86_64} if not Dontlinkstdlibpath Then LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/x86_64-linux-gnu',true); {$endif x86_64} +{$ifdef powerpc} + if not Dontlinkstdlibpath Then + LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/powerpc-linux-gnu',true); +{$endif powerpc} +{$ifdef powerpc64} + if not Dontlinkstdlibpath Then + LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/powerpc64-linux-gnu',true); +{$endif powerpc64} +{$ifdef aarch64} + if not Dontlinkstdlibpath Then + LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/aarch64-linux-gnu',true); +{$endif aarch64} end; {$ifdef m68k}