From: Pascal Packaging Team Date: Wed, 8 Feb 2017 09:53:35 +0000 (+0000) Subject: fix_FTBFS_on_linux_not_amd64 X-Git-Tag: archive/raspbian/3.0.0+dfsg-11+rpi1^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8a88eb1ed0676e0c0d00c6a168ed6761362dc64e;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}