浏览代码

+ 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 年之前
父节点
当前提交
2b6fc9b1ee
共有 1 个文件被更改,包括 8 次插入0 次删除
  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);
 {$endif powerpc64}
 {$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;
 
 {$ifdef m68k}