Explorar o código

* RiscV: pass the same default directories to the linker as on other architectures

florian %!s(int64=3) %!d(string=hai) anos
pai
achega
2da28054d4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compiler/systems/t_linux.pas

+ 2 - 0
compiler/systems/t_linux.pas

@@ -202,9 +202,11 @@ begin
 {$endif sparc64}
 {$ifdef riscv32}
       LibrarySearchPath.AddLibraryPath(sysrootpath,'=/usr/lib/riscv32-linux-gnu',true);
+      LibrarySearchPath.AddLibraryPath(sysrootpath,'=/lib/riscv32-linux-gnu',true);
 {$endif riscv32}
 {$ifdef riscv64}
       LibrarySearchPath.AddLibraryPath(sysrootpath,'=/usr/lib/riscv64-linux-gnu',true);
+      LibrarySearchPath.AddLibraryPath(sysrootpath,'=/lib/riscv64-linux-gnu',true);
 {$endif riscv64}
     end;
 end;