mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 23:49:22 +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}
|
{$endif m68k}
|
||||||
|
|
||||||
{$ifdef i386}
|
{$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
|
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
|
else if fileexists('/lib/ld-uClibc.so.0',false) then
|
||||||
begin
|
begin
|
||||||
dynamiclinker:='/lib/ld-uClibc.so.0';
|
dynamiclinker:='/lib/ld-uClibc.so.0';
|
||||||
@ -271,6 +279,12 @@ begin
|
|||||||
begin
|
begin
|
||||||
DynamicLinker:='/lib/ld-linux.so.1';
|
DynamicLinker:='/lib/ld-linux.so.1';
|
||||||
libctype:=glibc2;
|
libctype:=glibc2;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
{ default is glibc 2.1+ compatible }
|
||||||
|
DynamicLinker:='/lib/ld-linux.so.2';
|
||||||
|
libctype:=glibc21;
|
||||||
end;
|
end;
|
||||||
{$endif i386}
|
{$endif i386}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user