Przeglądaj źródła

* more reasonable defaults when no dyn. linker is found, resolves #10431

git-svn-id: trunk@11020 -
florian 17 lat temu
rodzic
commit
bcbc221191
1 zmienionych plików z 11 dodań i 2 usunięć
  1. 11 2
      compiler/systems/t_linux.pas

+ 11 - 2
compiler/systems/t_linux.pas

@@ -210,9 +210,18 @@ begin
        end
      else
        begin
-         { default is glibc 2.1+ compatible }
-         DynamicLinker:='/lib/ld-linux.so.2';
+         { when no dyn. linker is found, we are probably
+           cross compiling, so use the default dyn. linker }
+         DynamicLinker:=defdynlinker;
+         {
+           the default c startup script is gcrt0.as on all platforms
+           except i386
+         }
+{$ifdef i386}
          libctype:=glibc21;
+{$else i386}
+         libctype:=glibc2;
+{$endif i386}
        end;
    end;
 end;