Ver código fonte

+ at least raspian has no soft links in /usr/lib to crt*.o, so add their location to the search path

git-svn-id: trunk@22004 -
florian 13 anos atrás
pai
commit
2b6fc9b1ee
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      compiler/systems/t_linux.pas

+ 8 - 0
compiler/systems/t_linux.pas

@@ -120,6 +120,14 @@ begin
    LibrarySearchPath.AddPath(sysrootpath,'/lib;/usr/lib;/usr/X11R6/lib',true);
    LibrarySearchPath.AddPath(sysrootpath,'/lib;/usr/lib;/usr/X11R6/lib',true);
 {$endif powerpc64}
 {$endif powerpc64}
 {$endif x86_64}
 {$endif x86_64}
+
+{$ifdef arm}
+{$ifdef FPC_ARMHF}
+  { at least raspian has the crt*.o files at an uncommon location,
+    for other arm flavours, this cannot hurt }
+  LibrarySearchPath.AddPath(sysrootpath,'/usr/lib/arm-linux-gnueabihf',true);
+{$endif FPC_ARMHF}
+{$endif arm}
 end;
 end;
 
 
 {$ifdef m68k}
 {$ifdef m68k}