mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-10 06:18:53 +02:00
fix shared lib native linknig
git-svn-id: trunk@14283 -
This commit is contained in:
parent
6bead44bdf
commit
100e7c4d76
@ -364,7 +364,7 @@ begin
|
|||||||
if (isdll) then
|
if (isdll) then
|
||||||
begin
|
begin
|
||||||
LinkRes2:=TLinkRes.Create(outputexedir+Info.ResName);
|
LinkRes2:=TLinkRes.Create(outputexedir+Info.ResName);
|
||||||
LinkRes2.add('VERSION');
|
// LinkRes2.add('VERSION'); not needed for now
|
||||||
LinkRes2.add(' {');
|
LinkRes2.add(' {');
|
||||||
if not texportlibunix(exportlib).exportedsymnames.empty then
|
if not texportlibunix(exportlib).exportedsymnames.empty then
|
||||||
begin
|
begin
|
||||||
@ -568,7 +568,8 @@ begin
|
|||||||
while not linkres.data.Empty do
|
while not linkres.data.Empty do
|
||||||
begin
|
begin
|
||||||
s:=linkres.data.GetFirst;
|
s:=linkres.data.GetFirst;
|
||||||
linkstr:=linkstr+s+' ';
|
if s<>'' then
|
||||||
|
linkstr:=linkstr+' '+s;
|
||||||
end;
|
end;
|
||||||
linkres.free;
|
linkres.free;
|
||||||
Replace(cmdstr,'$RESDATA',linkstr);
|
Replace(cmdstr,'$RESDATA',linkstr);
|
||||||
@ -576,7 +577,7 @@ begin
|
|||||||
if use_gnu_ld then
|
if use_gnu_ld then
|
||||||
success:=DoExec(FindUtil(utilsprefix+BinStr),CmdStr,true,false)
|
success:=DoExec(FindUtil(utilsprefix+BinStr),CmdStr,true,false)
|
||||||
else { Using utilsprefix has no sense on /usr/bin/ld }
|
else { Using utilsprefix has no sense on /usr/bin/ld }
|
||||||
success:=DoExec(FindUtil(BinStr),CmdStr,true,false);
|
success:=DoExec(FindUtil(BinStr),Trim(CmdStr),true,false);
|
||||||
|
|
||||||
|
|
||||||
{ Strip the library ? }
|
{ Strip the library ? }
|
||||||
|
Loading…
Reference in New Issue
Block a user