mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 17:49:43 +02:00
* fixed shared linker name for i386
* restored old shared linker search order as good as possible git-svn-id: trunk@11558 -
This commit is contained in:
parent
8f23e55789
commit
8f95bb12ac
@ -160,7 +160,7 @@ begin
|
||||
{$endif m68k}
|
||||
|
||||
{$ifdef i386}
|
||||
defdynlinker:='/lib/ld-linux.so.1';
|
||||
defdynlinker:='/lib/ld-linux.so.2';
|
||||
{$endif}
|
||||
|
||||
{$ifdef x86_64}
|
||||
@ -194,24 +194,27 @@ begin
|
||||
glibc 2.0
|
||||
If none is found (e.g. when cross compiling) glibc21 is assumed
|
||||
}
|
||||
{$ifdef i386}
|
||||
if FileExists(sysrootpath+'/lib/ld-linux.so.2',false) then
|
||||
if fileexists(sysrootpath+defdynlinker,false) then
|
||||
begin
|
||||
DynamicLinker:='/lib/ld-linux.so.2';
|
||||
DynamicLinker:=defdynlinker;
|
||||
{$ifdef i386}
|
||||
libctype:=glibc21;
|
||||
end
|
||||
else
|
||||
{$else i386}
|
||||
libctype:=glibc2;
|
||||
{$endif i386}
|
||||
if fileexists(sysrootpath+'/lib/ld-uClibc.so.0',false) then
|
||||
end
|
||||
else if fileexists(sysrootpath+'/lib/ld-uClibc.so.0',false) then
|
||||
begin
|
||||
dynamiclinker:='/lib/ld-uClibc.so.0';
|
||||
libctype:=uclibc;
|
||||
end
|
||||
else if fileexists(sysrootpath+defdynlinker,false) then
|
||||
{$ifdef i386}
|
||||
else if FileExists(sysrootpath+'/lib/ld-linux.so.1',false) then
|
||||
begin
|
||||
DynamicLinker:=defdynlinker;
|
||||
DynamicLinker:='/lib/ld-linux.so.1';
|
||||
libctype:=glibc2;
|
||||
end
|
||||
{$endif i386}
|
||||
else
|
||||
begin
|
||||
{ when no dyn. linker is found, we are probably
|
||||
|
Loading…
Reference in New Issue
Block a user