mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 15:59:30 +02:00
* default dynamic linker for i386
git-svn-id: trunk@7367 -
This commit is contained in:
parent
377aae4ba0
commit
cbb3667d73
@ -258,10 +258,18 @@ begin
|
||||
{$endif m68k}
|
||||
|
||||
{$ifdef i386}
|
||||
{ default is glibc 2.1+ compatible }
|
||||
libctype:=glibc21;
|
||||
{
|
||||
Search order:
|
||||
glibc 2.1+
|
||||
uclibc
|
||||
glibc 2.0
|
||||
If none is found (e.g. when cross compiling) glibc21 is assumed
|
||||
}
|
||||
if FileExists('/lib/ld-linux.so.2',false) then
|
||||
DynamicLinker:='/lib/ld-linux.so.2'
|
||||
begin
|
||||
DynamicLinker:='/lib/ld-linux.so.2';
|
||||
libctype:=glibc21;
|
||||
end
|
||||
else if fileexists('/lib/ld-uClibc.so.0',false) then
|
||||
begin
|
||||
dynamiclinker:='/lib/ld-uClibc.so.0';
|
||||
@ -271,6 +279,12 @@ begin
|
||||
begin
|
||||
DynamicLinker:='/lib/ld-linux.so.1';
|
||||
libctype:=glibc2;
|
||||
end
|
||||
else
|
||||
begin
|
||||
{ default is glibc 2.1+ compatible }
|
||||
DynamicLinker:='/lib/ld-linux.so.2';
|
||||
libctype:=glibc21;
|
||||
end;
|
||||
{$endif i386}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user