mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 20:32:41 +02:00
* TInternalLinker.Load_ReadStaticLibrary: exit if error has occurred while opening a static library or dynamic object, continuing can cause other errors/crashes in this case.
* t_linux.pas: use sysrootpath when specifying dynamic interpreter (for cross-linking). git-svn-id: trunk@25277 -
This commit is contained in:
parent
088c06d308
commit
eec8129738
@ -1033,6 +1033,8 @@ Implementation
|
||||
exit;
|
||||
Comment(V_Tried,'Opening library '+para);
|
||||
objreader:=TArObjectreader.create(para,true);
|
||||
if ErrorCount>0 then
|
||||
exit;
|
||||
if objreader.isarchive then
|
||||
TFPObjectList(FGroupStack.Last).Add(TStaticLibrary.Create(para,objreader,CObjInput))
|
||||
else
|
||||
|
@ -1276,7 +1276,7 @@ begin
|
||||
{ See tw9089*.pp: if more than one pure-Pascal shared libs are loaded,
|
||||
and none have rtld in their DT_NEEDED, then rtld cannot finalize correctly. }
|
||||
if IsSharedLibrary then
|
||||
LinkScript.Concat('READSTATICLIBRARY '+maybequoted(dynlinker));
|
||||
LinkScript.Concat('READSTATICLIBRARY '+maybequoted(sysrootpath+dynlinker));
|
||||
|
||||
linkToSharedLibs:=(not SharedLibFiles.Empty);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user