diff --git a/compiler/systems/t_linux.pas b/compiler/systems/t_linux.pas index 1709f1c2ac..965f1a842c 100644 --- a/compiler/systems/t_linux.pas +++ b/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;