File fpc-fix_aarch64.patch of Package fpc

--- fpcbuild.orig/fpcsrc/compiler/systems/t_linux.pas	2018-09-04 13:33:08.118617046 +0200
+++ fpcbuild/fpcsrc/compiler/systems/t_linux.pas	2018-09-04 13:49:39.093020634 +0200
@@ -125,7 +125,7 @@ procedure SetupLibrarySearchPath;
 begin
   if not Dontlinkstdlibpath Then
     begin
-{$ifdef x86_64}
+{$ifdef x86_64 OR aarch64}
       { some linuxes might not have the lib64 variants (Arch, LFS }
       if PathExists('/usr/X11R6/lib64',true) then
         LibrarySearchPath.AddPath(sysrootpath,'/usr/X11R6/lib64',true)
@@ -171,6 +171,8 @@ begin
 {$endif i386}
 {$ifdef aarch64}
       LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/aarch64-linux-gnu',true);
+      LibrarySearchPath.AddPath(sysrootpath,'/usr/lib64/gcc/aarch64-suse-linux/8/',true);
+      LibrarySearchPath.AddPath(sysrootpath,'/usr/lib64',true);
 {$endif aarch64}
 {$ifdef powerpc}
       LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/powerpc-linux-gnu',true);
openSUSE Build Service is sponsored by