Re: Linking the whole archive.

Scott Bailey <[email protected]> Wed, 1 Apr 2009 15:49:51 -0700
Newsgroups gmane.comp.sysutils.bakefile.devel
Message-ID <[email protected]>
--===============0248522517433099748==
Content-Type: multipart/alternative; boundary=0015174c449c25ed990466862272

--0015174c449c25ed990466862272
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

> > I'm not discussing a replacement for <library>, this is a modifier
>> > like <lib-path>.
>>
>> It doesn't make sense that way -- surely you don't want to embed _all_
>> libraries, including system ones? It sounds better to explicitly include
>> the libraries you need included with <embed-library> instead of
>> <library>. Or is that not possible with VC++ project files?
>>
>>
> This modifier applies to <library> tag, not <sys-lib>.  It should be
> possible to do <embed-library> on a VC++ project.  I would ABSOLUTELY prefer
> this, but I'm not certain I can muster the hours necessary.  Let me
> investigate and think about it.
>

xcode2's linker flag is '-all_load'.  There is a '-noall_load' flag, but it
is obsolete and does nothing.  I had hoped it would perform as the GNU
linker's '--no-whole-archive'.

While I enjoy the technical challenge of implementing a per library tag
(i.e. <embed-library>), it is more work than I can justify.

I have a perfectly acceptable method, using <ldflags> and <ldlibs>, in
xcode2 AND gnu, but no method for msvs2005prj.  Ugh.

I'm done thinking about this for today.  Comments?

--0015174c449c25ed990466862272
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"b=
order-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; paddin=
g-left: 1ex;"><div class=3D"im"><div class=3D"gmail_quote"><blockquote clas=
s=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margi=
n: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>&gt; I&#39;m not discussing a replacement for &lt;library&gt;, this is=
 a modifier<br>
&gt; like &lt;lib-path&gt;.<br>
<br>
</div>It doesn&#39;t make sense that way -- surely you don&#39;t want to em=
bed _all_<br>
libraries, including system ones? It sounds better to explicitly include<br=
>
the libraries you need included with &lt;embed-library&gt; instead of<br>
&lt;library&gt;. Or is that not possible with VC++ project files?<br>
<font color=3D"#888888"><br>
</font></blockquote></div><br></div>This modifier applies to &lt;library&gt=
; tag, not &lt;sys-lib&gt;.=A0 It should be possible to do &lt;embed-librar=
y&gt; on a VC++ project.=A0 I would ABSOLUTELY prefer this, but I&#39;m not=
 certain I can muster the hours necessary.=A0 Let me investigate and think =
about it.<br>
<font color=3D"#888888">
</font></blockquote></div><br>xcode2&#39;s linker flag is &#39;-all_load&#3=
9;.=A0 There is a &#39;-noall_load&#39; flag, but it is obsolete and does n=
othing.=A0 I had hoped it would perform as the GNU linker&#39;s &#39;--no-w=
hole-archive&#39;.<br>
<br>While I enjoy the technical challenge of implementing a per library tag=
 (i.e. &lt;embed-library&gt;), it is more work than I can justify.=A0 <br><=
br>I have a perfectly acceptable method, using &lt;ldflags&gt; and &lt;ldli=
bs&gt;, in xcode2 AND gnu, but no method for msvs2005prj.=A0 Ugh.<br>
<br>I&#39;m done thinking about this for today.=A0 Comments?<br>

--0015174c449c25ed990466862272--


--===============0248522517433099748==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============0248522517433099748==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Bakefile-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bakefile-devel

--===============0248522517433099748==--