Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Why are we linking with --as-needed?

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 28 Mar 2016 02:39:12 +0200
[Less than 6000 mails in my Wireshark backlog mailbox]

On Thu, Jan 21, 2016 at 10:36:41PM -0500, Jeff Morriss wrote:
> On 01/21/2016 10:17 PM, Guy Harris wrote:
> >The GNU linker documentation says of the --as-needed flag
> >
> >--as-needed
> >--no-as-needed
...
> >About all I could find for a reason were bugs such as
> >
> >	https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1677
> >
> >complaining that Wireshark didn't build with --as-needed.
> >
> >So why is it useful that it be built - or, at least, buildable - with --as-needed?  (It's obviously not *necessary* as not all platform support that capability.)
> 
> I thought I remembered seeing (back around the time of bug 1677) a
> web page explaining why it was a Good Idea.  About all I can find at
> the moment is this one:
> 
> https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed

IIRC, the  link sums it up pretty well - with this option we specify all dependencies
explicitely.

Ciao
    Jörg

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.