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: "Paweł Hajdan, Jr." <phajdan.jr@g.o>
Subject: Re: News item announcing as-needed (glep 42 stuff)
Date: Mon, 26 Jul 2010 13:44:36 -0700
On 7/26/10 1:29 PM, Tomáš Chvátal wrote:
> Title: --as-needed enabled in default profiles
> Author: Tomáš Chvátal <scarabeus@g.o>
> Content-type: text/plain
> Posted: 2010-07-26
> Revision: 1
> News-Item-Format: 1.0
> 
> Starting today all applications emerged on your system are linked
> together with additional LDFLAGS="-Wl,--as-needed". This option
> allows us to avoid linking extra libraries into the final binary
> improving startup times and more importantly making binaries more
> resistant to a library SONAME changes [1].

How about making it less technical? Just say that you'll need to rebuild
less packages on average after a library upgrade than before.

> To gain the benefits of the change you should doublecheck your
> value of LDFLAGS in make.conf because the variable does not fold and
> your make.conf value is final. So after checking it and potentially
> removing we suggest rebuilding whole system to benefit from it.

This might be a bit unclear to less savvy users. How about just make
sure your LDFLAGS in /etc/make.conf contains "-Wl,--as-needed" or is unset?

> Overriding the in-profiles value is quite simple as described by
> previous paragraph. Just put simply LDFLAGS="-Wl,01" in make.conf.

Instead of saying "overriding", I'd say something more similar to
"disabling --as-needed" and add that it is not recommended.

> [1] http://www.gentoo.org/proj/en/qa/asneeded.xml

Paweł

P.S. It's nice to see this happening, thanks!

Attachment:
signature.asc (OpenPGP digital signature)
Replies:
Re: News item announcing as-needed (glep 42 stuff)
-- Joshua Saddler
References:
News item announcing as-needed (glep 42 stuff)
-- Tomáš Chvátal
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: News item announcing as-needed (glep 42 stuff)
Previous by date:
Re: News item announcing as-needed (glep 42 stuff)
Next by date:
Lastrite: app-office/mozilla-sunbird{,-bin}


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.