On Fri, Oct 01, 2010 at 09:21:23PM +0200, Bram Moolenaar wrote:
> 
> Kirill A. Shutemov wrote:
> 
> > On Tue, Aug 31, 2010 at 09:29:57AM -0400, James Vega wrote:
> > > On Tue, Aug 31, 2010 at 8:30 AM, Kirill A. Shutemov
> > > <[email protected]> wrote:
> > > > On Wed, Aug 25, 2010 at 07:28:04AM -0400, James Vega wrote:
> > > >> On Wed, Aug 25, 2010 at 12:20:56PM +0300, Kirill A. Shutemov wrote:
> > > >> > On Mon, Aug 23, 2010 at 03:44:12PM +0300, Kirill A. Shutemov wrote:
> > > >> > > link.sh tries to avoid overlinking in a hackish way.
> > > >> > > At least GNU ld supports --as-needed which provides the same 
> > > >> > > functionality
> > > >> > > at linker level. Let's use it.
> > > >> >
> > > >> > Any comments?
> > > >>
> > > >> Simply as a data point, I've been building Debian's Vim packages with
> > > >> -Wl,--as-needed for ~2.5 years now so I'd be interested in having this
> > > >> functionality done automatically when the proper tools are present.
> > > >
> > > > Seems, nobody cares. Sad.
> > > 
> > > Just be patient. :) Bram appears to have been busy since the 7.3
> > > release.  When he gets back to Vim stuff, you'll likely get a response
> > > then.
> > 
> > Bram, any feedback?
> 
> I don't know this link option, where it's supported or how well it
> works.

It works in both binutils linkers (bfd and gold). Some distributions use
it by default for all packages. ALT Linux uses it since 2006.

> If we want to use it we would need a configure check and somehow
> have the result used for link.sh.  I haven't seen a patch for that.

My patch checks if linker supports the option. Or do you want something
else?

-- 
 Kirill A. Shutemov

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui