Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ryan Hill <dirtyepic@g.o>
Subject: Re: News item announcing as-needed (glep 42 stuff)
Date: Mon, 26 Jul 2010 21:38:05 -0600
On Tue, 27 Jul 2010 00:41:12 +0200
Sebastian Pipping <sping@g.o> wrote:

> I like that one better.
> 
> 
> Both proposals leave a question open to me, though:
> Do I understand correctly that I could integrate the in-profile value with
> 
>   LDFLAGS="${LDFLAGS} foo bar"
> 
> in /etc/make.conf?  Maybe that's something people want to do.  If so
> maybe add a hint?

Yep.  Can I suggest:

-Wl,--as-needed has been added to the default profile's LDFLAGS.

This option optimizes the linking process, only linking binaries to
libraries that are trully needed. This way, fewer libraries are loaded
at runtime and fewer packages need to be rebuilt after library updates.

To take advantage of the new default you can either rebuild world now or just
allow the system to migrate incrementally as it updates.

Please note that setting LDFLAGS="<your flags>" in your make.conf will
override the profile defaults. If you want to add additional LDFLAGS it is
recommended to use LDFLAGS="${LDFLAGS} <your flags>" instead to avoid this.

For more information on --as-needed, read [1].
 
[1] http://www.gentoo.org/proj/en/qa/asneeded.xml


-- 
fonts, gcc-porting,                                   and it's all by design
toolchain, wxwidgets                        to keep us from losing our minds
@ gentoo.org                EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
Attachment:
signature.asc (PGP signature)
Replies:
Re: Re: News item announcing as-needed (glep 42 stuff)
-- Róbert Čerňanský
Re: Re: News item announcing as-needed (glep 42 stuff)
-- Tomáš Chvátal
References:
News item announcing as-needed (glep 42 stuff)
-- Tomáš Chvátal
Re: News item announcing as-needed (glep 42 stuff)
-- Alex Alexander
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: News item announcing as-needed (glep 42 stuff)
Next by thread:
Re: Re: News item announcing as-needed (glep 42 stuff)
Previous by date:
Re: News item announcing as-needed (glep 42 stuff)
Next by date:
Re: News item announcing as-needed (glep 42 stuff)


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.