From 100e7c4d76e61f4503cf18b5fe399202bcab063c Mon Sep 17 00:00:00 2001 From: pierre Date: Fri, 27 Nov 2009 23:16:06 +0000 Subject: [PATCH] fix shared lib native linknig git-svn-id: trunk@14283 - --- compiler/systems/t_sunos.pas | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler/systems/t_sunos.pas b/compiler/systems/t_sunos.pas index 255ec5fbf4..77f374d5b6 100644 --- a/compiler/systems/t_sunos.pas +++ b/compiler/systems/t_sunos.pas @@ -364,7 +364,7 @@ begin if (isdll) then begin LinkRes2:=TLinkRes.Create(outputexedir+Info.ResName); - LinkRes2.add('VERSION'); + // LinkRes2.add('VERSION'); not needed for now LinkRes2.add(' {'); if not texportlibunix(exportlib).exportedsymnames.empty then begin @@ -568,7 +568,8 @@ begin while not linkres.data.Empty do begin s:=linkres.data.GetFirst; - linkstr:=linkstr+s+' '; + if s<>'' then + linkstr:=linkstr+' '+s; end; linkres.free; Replace(cmdstr,'$RESDATA',linkstr); @@ -576,7 +577,7 @@ begin if use_gnu_ld then success:=DoExec(FindUtil(utilsprefix+BinStr),CmdStr,true,false) 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 ? }